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!