Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor
Return array layout of the generated code
arrayLayout = getArrayLayout(codeDescObj)
returns the array layout of the model for which the code is generated.arrayLayout
= getArrayLayout(codeDescObj
)
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.
rtwbuild('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'