Main Content

coder.dictionary.open

Open Embedded Coder Dictionary object

Description

example

coderDictionaryObj = coder.dictionary.open(sourceName) opens the Embedded Coder Dictionary in the model or Simulink® data dictionary identified by sourceName. The function returns a coder.Dictionary object representing the Embedded Coder Dictionary.

Examples

collapse all

Open the model rtwdemo_roll, which has an Embedded Coder Dictionary.

rtwdemo_roll

Open the Embedded Coder Dictionary and represent it with a coder.Dictionary object.

coderDictionaryObj = coder.dictionary.open('rtwdemo_roll')
coderDictionaryObj = 

  Dictionary with Sections:

                    StorageClasses: [1×1 coder.dictionary.Section]
                    MemorySections: [1×1 coder.dictionary.Section]
    FunctionCustomizationTemplates: [1×1 coder.dictionary.Section]

Input Arguments

collapse all

Name of the model file or data dictionary that contains the Embedded Coder Dictionary, specified as a character vector.

  • A model must be loaded (for example, by using load_system) or open.

    You do not need to specify the .slx file extension.

  • A dictionary must be open in the Model Explorer, in the current folder, or on the MATLAB® path.

    You must specify the .sldd file extension.

Example: 'myLoadedModel'

Example: 'myDictionary.sldd'

Data Types: char

Output Arguments

collapse all

Embedded Coder Dictionary, returned as a coder.Dictionary object.

Introduced in R2019b