getArrayLayout
Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor
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 a model.
rtwdemo_comments
Specify the model configuration parameter Array layout as
Row-major
. Alternatively, in the command window, use these commands:set_param('rtwdemo_comments', 'ArrayLayout','Row-major');
Build the model.
slbuild('rtwdemo_comments')
Create a
coder.codedescriptor.CodeDescriptor
object for the model.codeDescObj = coder.getCodeDescriptor('rtwdemo_comments')
Return the array layout of the generated code.
arrayLayout = getArrayLayout(codeDescObj)
arrayLayout
has this value:'Row-major'
Version History
Introduced in R2018b