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('rtwdemo_comments')

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\rtwdemo_comments_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: rtwdemo_comments

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\rtwdemo_comments_ert_rtw

Data Types: string

Introduced in R2018a