フィルターのクリア

convfft vs. fftfilt (1D convolution)

8 ビュー (過去 30 日間)
Hamed Amini
Hamed Amini 2011 年 8 月 15 日
I'd like to use the fastest way for 1D convolution in Matlab. Under the discussions for convfft, it's said that fftfilt is faster than convfft, however i'm using the following equivalent commands (for large vectors), and i found fftconv to be faster. Any suggestions?
res1 = convfft(a,b);
res2 = fftfilt([a,zeros(length(b)-1,1)],[b,zeros(length(a)-1,1)]);

採用された回答

David Young
David Young 2011 年 8 月 15 日
The relative speed depends on the the sizes of the vectors. The best way to find out which is fastest is to experiment - and that's therefore my suggestion.
There's some discussion of the 2-D case here and some experimental results, which show some of the factors you need to take into account.
  1 件のコメント
Hamed Amini
Hamed Amini 2011 年 8 月 16 日
Thanks David.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by