![]() %% this method is slide the window through the entire data at every 1/2 second, calculate the frequency, average it. %Estimate the power spectrum of the 10-s epoch by computing the periodogram Xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Zoom into original EEG signal at 1 to 2 seconds'), xlim() % Used to zoom in on single ECG waveformfigure Tx =/fs % Make time axis for EEG signalįx = fs*(0:N/2-1)/N %Prepare freq data for plotįigure subplot (211), plot(tx,EEGsig) xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Original EEG signal') %EEG waveform N =length(EEGsig) ls = size(EEGsig) % find the length of the data per second Load('J:\BIOM_Signal_processing\HW10\hmwk_EEGs') % contains eeg1 and fs If the unit of time is seconds, the sampling frequency has units of hertz. The sampling frequency is the number of samples per unit time. Sampling frequency, specified as a positive scalar. ![]() Fs = 512 % fs - Sampling frequency, positive scalar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |