Documentation

Simulink.data.dictionary.create

Create new data dictionary and createSimulink.data.Dictionaryobject

Syntax

dictionaryObj = Simulink.data.dictionary.create(dictionaryFile)

Description

example

dictionaryObj= Simulink.data.dictionary.create(dictionaryFile)creates a data dictionary file in your current working folder or in a file path you can specify indictionaryFile. The function returns aSimulink.data.Dictionaryobject representing the new data dictionary.

Examples

collapse all

Create a data dictionarymyNewDictionary.slddin your current working folder and aSimulink.data.Dictionaryobject representing the new data dictionary. Assign the object to the variablemyDictionaryObj.

myDictionaryObj = Simulink.data.dictionary.create('myNewDictionary.sldd')
myDictionaryObj = data dictionary with properties: DataSources: {0x1 cell} HasUnsavedChanges: 0 NumberOfEntries: 0

Input Arguments

collapse all

Name of new data dictionary, specified as a character vector containing the file name and, optionally, path of the dictionary to create. If you do not specify a path,Simulink.data.dictionary.createcreates the new data dictionary file in your working MATLAB folder.Simulink.data.dictionary.createalso supports file paths specified relative to your working folder.

Example:'myDictionary.sldd'

Example:'C:\Users\jsmith\myDictionary.sldd'

Example:'..\myOtherDictionary.sldd'

Data Types:char

Output Arguments

collapse all

Newly created data dictionary, returned as aSimulink.data.Dictionaryobject.

Alternatives

You can use the Simulink Editor to create a data dictionary and link it to a model. SeeMigrate Single Model to Use Dictionaryfor more information.

Introduced in R2015a

Was this topic helpful?