Documentation

Simulink.data.dictionary.Section class

Package: Simulink.data.dictionary
Superclasses:

Configure data dictionary section

Description

An object of the Simulink.data.dictionary.Section class represents one section of a data dictionary, such as Design Data or Configurations. The object allows you to perform operations on the section such as add or delete entries and import data from files.

Before you can create a Simulink.data.dictionary.Section object, you must create a Simulink.data.Dictionary object representing the target data dictionary. Once created, the Simulink.data.dictionary.Section object exists independently of the Simulink.data.Dictionary object.

Construction

The function getSection creates a Simulink.data.dictionary.Section object.

Properties

expand all

Name of data dictionary section, returned as a character vector. This property is read only.

Methods

addEntryAdd new entry to data dictionary section
assigninAssign value to data dictionary entry
deleteEntryDelete data dictionary entry
evalinEvaluate MATLAB expression in data dictionary section
existCheck existence of data dictionary entry
exportToFileExport data dictionary entries from section to MAT-file or MATLAB file
find Search in data dictionary section
getEntryCreate Simulink.data.dictionary.Entry object to represent data dictionary entry
importFromFileImport variables from MAT-file or MATLAB file to data dictionary section

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects (MATLAB).

Examples

expand all

Open the data dictionary myDictionary_ex_API.sldd and represent it with a Simulink.data.Dictionary object named myDictionaryObj.

myDictionaryObj = Simulink.data.dictionary.open('myDictionary_ex_API.sldd');

Represent the Design Data section of the data dictionary myDictionary_ex_API.sldd with a Simulink.data.dictionary.Section object named dDataSectObj.

dDataSectObj = getSection(myDictionaryObj,'Design Data')
dDataSectObj = 

  Section with properties:

    Name: 'Design Data'

Introduced in R2015a

Was this topic helpful?