Preserve operand order in expression
Preserve order of operands in expressions
Model Configuration Pane: Code Generation / Code Style
Specify whether to preserve order of operands in expressions.
Preserves the expression order specified in the model. Select this option to increase readability of the code or for code traceability purposes.
Optimizes efficiency of code for nonoptimized compilers by reordering commutable operands to make expressions left-recursive.
Control Order of Operands in Generated Code Expressions
Compare the order of operands in expressions in the generated code when you set Preserve operand order in expression to different values.
Here is generated code that generated using the default Preserve
operand order in expression value
Here is the same code generated with Preserve operand order in
expression set to
|Type: character vector|
Introduced in R2007a