getArrayLayout
クラス: coder.codedescriptor.CodeDescriptor
名前空間: coder.codedescriptor
生成コードの配列レイアウトを返す
構文
arrayLayout = getArrayLayout(codeDescObj)
説明
はコードが生成されるモデルの配列レイアウトを返します。arrayLayout
= getArrayLayout(codeDescObj
)
入力引数
出力引数
例
ビルドされるモデルの coder.codedescriptor.CodeDescriptor
オブジェクトを作成してから、生成コードの配列レイアウトをリストします。
CustomCodeComments
モデルを開きます。openExample('CustomCodeComments')
モデル コンフィギュレーション パラメーター [配列のレイアウト] を
[行優先]
として指定します。または、コマンド ウィンドウで以下のコマンドを使用します。set_param('CustomCodeComments', 'ArrayLayout','Row-major');
モデルを作成します。
slbuild('CustomCodeComments')
モデルの
coder.codedescriptor.CodeDescriptor
オブジェクトを作成します。codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
生成コードの配列レイアウトを返します。
arrayLayout = getArrayLayout(codeDescObj)
arrayLayout
の値は次のとおりです。'Row-major'
バージョン履歴
R2018b で導入