Enable implicit expansion in MATLAB® functions
Option to enable implicit expansion for MATLAB Function blocks, Stateflow charts, and MATLAB System blocks
Since R2021a
Model Configuration Pane: Simulation Target
Description
The Enable implicit expansion in MATLAB functions parameter specifies whether to enable implicit expansion in simulation and code generation for MATLAB code that contains binary operations and functions in MATLAB Function blocks, Stateflow® charts, and MATLAB System blocks. Implicit expansion can change the output size of binary operations and functions. When you enable this parameter, the code generator may generate additional code to perform the implicit expansion.
Settings
on
(default) | off
on
Enables implicit expansion in simulation and code generation for MATLAB code that contains binary operations and functions.
off
Disables implicit expansion in simulation and code generation for MATLAB code that contains binary operations and functions.
The software issues errors in simulation and code generation when MATLAB code requires implicit expansion.
Recommended Settings
Application | Setting |
---|---|
Debugging | No recommendation |
Traceability | No recommendation |
Efficiency | No recommendation |
Safety precaution | No recommendation |
Programmatic Use
Parameter: EnableImplicitExpansion |
Type: string | character vector |
Values:
'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2021a