ifft matlab to cpp

5 ビュー (過去 30 日間)
Levan Tsereteli
Levan Tsereteli 2021 年 12 月 27 日
回答済み: Steven Lord 2021 年 12 月 27 日
I am translating my Matlab code to cpp and have problem to repreduce the results of the inverse fft in my cpp code.
as I know matlab is using under the hood c++ fftw libraries https://www.fftw.org/. I am using them directly in my project.
with fft everything is in perfect match however with ifft difference in the obtained coefficient between matlab and cpp is very big.
is there any internal manipulation done when ifft is computed with matlab ? Some functionality additional to one provided at https://www.fftw.org/ In case anybody has experiuence with that could you give me some advice how to figure it out.

回答 (1 件)

Steven Lord
Steven Lord 2021 年 12 月 27 日
The ifft function supports the extended capability of C/C++ code generation using MATLAB Coder. If you have MATLAB Coder available I recommend you read through the extended capability section of its documentation page for more information.

カテゴリ

Help Center および File ExchangeTransforms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by