Main Content

Built-in FFTW library callback

Use built-in callback for FFTW library usage

Since R2023a

Model Configuration Pane: Code Generation


The Built-in FFTW library callback parameter instructs the code generator to use the built-in callback for FFTW library calls in the code generated for FFT functions from MATLAB® code. This parameter applies to MATLAB code in a MATLAB Function block, a Stateflow® chart, or a System object™ associated with a MATLAB System block.

To improve the execution speed of FFT functions, the code generator produces calls to the FFTW library. You can either use the code generator's built-in callback or define the custom callback class for FFTW library calls.


off (default) | on

Uses the built-in callback for FFTW library usage.


Does not use the built-in callback for FFTW library usage.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: BuiltinFFTWCallback
Type: character vector
Value: 'on' | 'off'
Default: 'off'


This feature works only on MATLAB host targets and does not support multi-threading.

Version History

Introduced in R2023a