Does fft() always require 2^n sample points?
10 ビュー (過去 30 日間)
古いコメントを表示
Hi, Does FFT always require 2^n? why is that? Thank you.
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 2 月 21 日
編集済み: Azzi Abdelmalek
2013 年 2 月 21 日
No. any number of samples. Just try it. The algorithm needs 2*n samples to have even samples and odd samples. If you have odd number, you can add a 0 to your samples then use the fft algorithm, at the end you have just to take in account your original samples.
2 件のコメント
Surendra Maharjan
2019 年 4 月 3 日
Dear Nina,
A = [1 2 3 4 5];
B = [1 2 3 4 5 0 0 0];
For example, A is your row matrix, then you can add three zeros to make A into power multiples of 2. So, B has 8 elements. Then, you can perform C = fft(B,[],2),,[] indicates matrix and 2 indicates the fft direction in row.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!