where is the error in my program, why I don't get the amplitude is not 4 .
fs=300;N=3000;t = (1:N)/fs; % Time vector
x = 4*cos(2*pi*100*t); % FFT
fn=hanning(N); %fenetre de hanning
ft=abs(fft(x'.*fn));%fft
plot(ft);
errorffthanning
fs=300;N=3000;t = (1:N)/fs; % Time vector
x = 4*cos(2*pi*100*t); % FFT
fn=hanning(N); %fenetre de hanning
ft=abs(fft(x'.*fn));%fft
plot(ft);
Best Answer