Main Content

getCodeDescriptor

Create coder.codedescriptor.CodeDescriptor object for model

Description

getCodeDescriptor(model) creates a coder.codedescriptor.CodeDescriptor object for the specified model.

getCodeDescriptor(folder) creates a coder.codedescriptor.CodeDescriptor object for the specified build folder.

Examples

Create a Code Descriptor Object Using Model Name

Create a coder.codedescriptor.CodeDescriptor object by using model name:

codeDescObj = coder.getCodeDescriptor('CustomCodeComments')

Create a Code Descriptor Object Using Build Folder

Create a coder.codedescriptor.CodeDescriptor object by using build folder:

codeDescObj = coder.getCodeDescriptor('C:\Users\Desktop\work\CustomCodeComments_ert_rtw')

Input Arguments

collapse all

Model object or name for which to obtain the coder.codedescriptor.CodeDescriptor object. You can get the coder.codedescriptor.CodeDescriptor object only for the top model if the model has referenced models.

Example: CustomCodeComments

Data Types: string

Build folder of the model for which to obtain the coder.codedescriptor.CodeDescriptor object. You can get the coder.codedescriptor.CodeDescriptor object only for the top model if the model has referenced models.

Example: C:\Users\Desktop\Work\CustomCodeComments_ert_rtw

Data Types: string

Version History

Introduced in R2018a