Collapse block computations into single expressions.
Category: Optimization
Default: On
Enables expression folding.
Eliminates local variables, incorporating the information into the main code statement.
Improves code readability and efficiency.
Disables expression folding.
This parameter requires a Simulink® Coder™ license.
This parameter is enabled by Signal storage reuse.
Parameter:
ExpressionFolding |
Value:
'on' | 'off' |
Default:
'on' |
Application | Setting |
---|---|
Debugging | Off |
Traceability | No impact for
simulation or during development Off for production code generation |
Efficiency | On |
Safety precaution | No impact |