How to chose FFT parameter ?
이전 댓글 표시
Hello I have a discrete signal run for 512 Sec with one sample per sec. I chose the fft parameter as follow: Fs=1; nfft=1024; f=(0:nfft/2-1)*fs/nfft;
Is that correct ?
Whenever I do an fft for my signal i can seep the peak on zero only. Also there are some peaks on 1024, 512, 256,... Appreciate your help
채택된 답변
추가 답변 (1개)
Youssef Khmou
2013년 10월 12일
Fs should be at leats twice the maximum frequency in the signal , and the number NFFT increases resolution only , example :
Fs=80;
t=0:1/Fs:2-1/Fs;
y=sin(2*pi*t*35);
N=1024;
fy=fft(y,N);
freq=(0:N-1)*Fs/N;
figure, plot(freq(1:end/2),abs(fy(1:end/2)))
댓글 수: 3
Omar thamer
2013년 10월 15일
Youssef Khmou
2013년 10월 15일
편집: Youssef Khmou
2013년 10월 15일
thats sound normal, the signal contains near zero frequency :
try :
figure, plot(abs(fft(signal)));
same spectrum?
Omar thamer
2013년 10월 15일
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

