Professional Documents
Culture Documents
of both the signals. clear; load ecg; ecg=val(1,:); load eeg; eeg=val(1,:);
subplot(2,1,2) plot(abs(fft(ecg))) title('frequency spectrum of ecg signal '); xlabel('frequency(Hz)'); figure(2); subplot(2,1,1),plot(eeg); title('eeg signal'); subplot(2,1,2) plot(abs(fft(eeg))) title('frequency spectrum of eeg signal '); xlabel('frequency(Hz)');