i have done upto here.............
here i took the a.txt an eeg file from internet, but i donot get my required frequcies.....
please help me....in
Q: In normalizing the FFT.
Q2: in showing the frequencies in HERTZ, in x-axis.
Parameters---------------------------------------------------------------
N = 1000; % number of points for FFT
fs=200
dt = 1/fs; % sampling time, 1/Fs where Fs is sampling frequency
%T = 1; % final time
w1=0.12
w2=0.18
wn=[w1 w2]
% Data---------------------------------------------------------------------
t = 0:dt:1; % time data
y =textread('a.txt') % signal
Y = fft(y,N);
% Post processing----------------------------------------------------------
k=fir1(N,wn,'bandpass')
k1=conv(y,k)
Pyy = 2*abs(Y) / min(N,T/dt);
f = 1/dt*(0:N/2)/N;
%figure;
%plot(f,Pyy(1:N/2+1))
%title('Frequency content of signal')
%xlabel('frequency (Hz)')
%ylabel('amplitude of each mode')
%grid on
% figure;
% freqz(k,k1,n,fs);
% End--
plz help me...