필터 지우기
필터 지우기

FFT speed problem in C Coder

조회 수: 1 (최근 30일)
Jongmin Kim
Jongmin Kim 2021년 12월 7일
답변: Jongmin Kim 2021년 12월 8일
Dear all,
I used Matlab Coder to convert a function containing FFT into C code.
But it is very slow.
I've checked some of the C code.
It looks like the FFT operation is not optimized.
I inquire if I can use FFTW or MKL. (I don't know in which menu of the coder app these functions are available.)
I can use both Matlab C Coder and Embedded Coder.
I need help with this issue.

채택된 답변

Jongmin Kim
Jongmin Kim 2021년 12월 8일
I looked at the code generated by the coder.
  • fft.h/fft.c
  • FFTImplementationCallback.h/FFTImplementationCallback.c
Do I have to edit this file myself?

추가 답변 (1개)

Raghu Boggavarapu
Raghu Boggavarapu 2021년 12월 7일
If you have generated MEX code, generated code will by default have calls to FFTW library. However, if you are generating standalone code, code generator will produce code for FFT algorithms. If you have a FFTW library installed, please follow the instructions in the page Abstract class for specifying an FFTW library for FFTW calls in generated code - MATLAB (mathworks.com) to integrate the Library with MATLAB Coder generated code.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by