DSPRelated.com
Forums

FFT bands

Started by dean_cvetkovic May 21, 2003
The work I'm doing is to simply determine the FFT analysis of four-
chanell EEG signals.
Can anyone tell me how can I calculate the individual
(mean/max/min/median/sd) values of (3-8Hz),(8-13Hz), and (13-30Hz)
ranges automatically and possibly plot it too for comparisons?

The following codes is for FFT signal of 1000Hz sampling rate. Also,
does the sampling time has to be changed too?

Thanks in advance.

----------------
clear
load filename.txt

Fs00;
figure(1);
for i=1:4,
x=filename(:,i);
Xt(x,1024);
Px=X.*conj(X)/1024; Pxx*log10(Px);
f=Fs*(0:512)/1024;
subplot(4,1,i); plot(f,Pxx(1:513));
axis([0 45 -40 0]);
grid; ylabel('power(dB)'); xlabel('frequency(Hz)');
end
------------------------