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 で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!