coder.dictionary.open - Open Embedded Coder Dictionary object - MATLAB (original) (raw)
Main Content
Open Embedded Coder Dictionary object
Syntax
Description
[coderDictionaryObj](#mw%5F9b114f78-94f1-4152-86c4-763e471ee0bd) = coder.dictionary.open([sourceName](#mw%5Fde5dedc4-061e-40fe-84aa-b5b8b2437325))
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
Open the model RollAxisAutopilot
, which has an Embedded Coder Dictionary.
openExample('RollAxisAutopilot')
Open the Embedded Coder Dictionary and represent it with acoder.Dictionary
object.
coderDictionaryObj = coder.dictionary.open('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
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
Version History
Introduced in R2019b