getArrayLayout
Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor
Return array layout of the generated code
Syntax
arrayLayout = getArrayLayout(codeDescObj)
Description
returns the array layout of the model for which the code is generated.arrayLayout
= getArrayLayout(codeDescObj
)
Input Arguments
Output Arguments
Examples
Create a coder.codedescriptor.CodeDescriptor
object for the model that
is built, then list the array layout of the generated code.
Open the
CustomCodeComments
model.openExample('CustomCodeComments')
Specify the model configuration parameter Array layout as
Row-major
. Alternatively, in the command window, use these commands:set_param('CustomCodeComments', 'ArrayLayout','Row-major');
Build the model.
slbuild('CustomCodeComments')
Create a
coder.codedescriptor.CodeDescriptor
object for the model.codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
Return the array layout of the generated code.
arrayLayout = getArrayLayout(codeDescObj)
arrayLayout
has this value:'Row-major'
Version History
Introduced in R2018b