Main Content

Open Embedded Coder Dictionary object

Since R2019b



coderDictionaryObj = 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.


collapse all

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


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

coderDictionaryObj ='RollAxisAutopilot')
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.

Version History

Introduced in R2019b