What are the frequencies when N in fft(x,N) is odd?
이전 댓글 표시
I know when N is even, fft(x,N) corresponds to frequencies 0,df,...,N/2*df,-(N/2-2)*df,...,-df.
What about if N is odd?
채택된 답변
추가 답변 (1개)
Michael scheinfeild
2014년 7월 10일
if x is ampled at fs you can generate frequency vector use
freqvec=linspace(0,fs,N);
댓글 수: 3
Ray Lee
2014년 7월 10일
Honglei Chen
2014년 7월 10일
This is incorrect. linspace always sample the last one, which you don't want.
CHAN CHEN HUA
2021년 10월 7일
@Honglei Chen Hi, can i know why last sample should not be taken into?
카테고리
도움말 센터 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!