coder.isColumnMajor
Determine whether the current function or variable uses column-major layout
Description
coder.isColumnMajor resolves as true in the generated code if
the current function uses column-major array layout. Use the function as the
expression in control flow (if, else,
switch) statements.
Examples
Input Arguments
Limitations
You cannot query the array layout of a structure field or property.
Tips
The code generator uses column-major layout by default.
Outside of code generation and simulation,
coder.isColumnMajoris always true.If
coder.isColumnMajoralways resolves to true for your code, other branches in theifstatement are ignored by the code generator. Otherwise, one instance of the current function is created for each array layout.
Extended Capabilities
Version History
Introduced in R2018a