getReferencedModelCodeDescriptor
Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor
Return coder.codedescriptor.CodeDescriptor
object for the
specified referenced model
Syntax
refCodeDescriptor = getReferencedModelCodeDescriptor(codeDescObj, refModelName)
Description
returns the refCodeDescriptor
= getReferencedModelCodeDescriptor(codeDescObj
, refModelName
)coder.codedescriptor.CodeDescriptor
object for the
referenced model specified in refModelName
.
Input Arguments
Output Arguments
Examples
Build the model.
slbuild('rtwdemo_async_mdlreftop')
Create a
coder.codedescriptor.CodeDescriptor
object for the required model.codeDescObj = coder.getCodeDescriptor('rtwdemo_async_mdlreftop')
Return a list of referenced models.
refModels = getReferencedModelNames(codeDescObj)
refModels
contains the list of referenced models for
rtwdemo_async_mdlreftop
.
{'rtwdemo_async_mdlrefbot'}
coder.codedescriptor.CodeDescriptor
object for
any of the referenced
models.refCodeDescriptorObj = getReferencedModelCodeDescriptor(codeDescObj, 'rtwdemo_async_mdlrefbot')
refCodeDescriptorObj
is the coder.codedescriptor.CodeDescriptor
object for
rtwdemo_async_mdlrefbot
model.ModelName: 'rtwdemo_async_mdlrefbot' BuildDir: 'C:\Users\Desktop\Work\slprj\tornado\rtwdemo_async_mdlrefbot'
Version History
Introduced in R2018a