How can I Stimulation sequence

3 views (last 30 days)
nazmican
nazmican on 18 Dec 2022
Commented: Varun on 23 Feb 2023
% find the length of the filter h and assign to hLen
hLen=
% create a time vector t_h to plot the time of the filter h using the
% sampling period and the number of points in filter
t_h=
% plot the stimulus filter sequence h with respect to time t_h using stem()
stem()
%Title the graphics title('Stimulus filter sequence ')
%title();
%label the x and y axis as time(s) and amplitude(µA)
%xlabel();
%ylabel();
  2 Comments
nazmican
nazmican on 18 Dec 2022
I try this;
load('VEPdata1.mat');
Fs=2000;%Sampling frequency
Ts=1/Fs;%Sampling period
t=0:Ts:10;
plot(t);
title('10s of EEG data');
xlabel('time(s)');
ylabel('amplitude(microA)');
hLen=1;
t_h=0:Ts:1
stem(t_h);
title('Stimulus filter sequence');
xlabel('time(s)');
ylabel('amplitude(microA)');
Nr=hLen;
Varun
Varun on 23 Feb 2023
Hello! Can you please share where exactly are you facing the issue?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!