Main Content

getSection

Return Simulink.data.dictionary.Section object to represent data dictionary section

Description

sectionObj = getSection(dictionaryObj,sectionName) returns a Simulink.data.dictionary.Section object representing one section, sectionName, of a data dictionary dictionaryObj, a Simulink.data.Dictionary object.

When you access the Embedded Coder section of a data dictionary, getSection returns a coder.Dictionary (Embedded Coder) object representing the Embedded Coder Dictionary in the data dictionary.

example

Examples

collapse 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'

Input Arguments

collapse all

Data dictionary containing target section, specified as a Simulink.data.Dictionary object. Before you use this function, represent the dictionary with a Simulink.data.Dictionary object by using, for example, the Simulink.data.dictionary.create or Simulink.data.dictionary.open function.

Name of target data dictionary section, specified as a character vector.

Example: 'Design Data'

Example: 'Configurations'

Example: 'EmbeddedCoder'

Data Types: char

Version History

Introduced in R2015a