Main Content

getSection

データ ディクショナリ セクションを表す Simulink.data.dictionary.Section オブジェクトを返す

説明

sectionObj = getSection(dictionaryObj,sectionName) は、データ ディクショナリ dictionaryObj (Simulink.data.Dictionary オブジェクト) の 1 つのセクション sectionName を表す Simulink.data.dictionary.Section オブジェクトを返します。

データ ディクショナリの [Embedded Coder] セクションにアクセスすると、getSection はデータ ディクショナリで Embedded Coder ディクショナリを表す coder.Dictionary (Embedded Coder) オブジェクトを返します。

すべて折りたたむ

データ ディクショナリ myDictionary_ex_API.sldd を開き、myDictionaryObj という名前の Simulink.data.Dictionary オブジェクトで表します。

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

データ ディクショナリ myDictionary_ex_API.sldd の [Design Data] セクションを dDataSectObj という名前の Simulink.data.dictionary.Section オブジェクトで表します。

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

  Section with properties:

    Name: 'Design Data'

入力引数

すべて折りたたむ

ターゲットのセクションを含むデータ ディクショナリ。Simulink.data.Dictionary オブジェクトとして指定します。この関数を使用する前に、関数 Simulink.data.dictionary.create や関数 Simulink.data.dictionary.open を使用してディクショナリを Simulink.data.Dictionary オブジェクトで表しておきます。

ターゲットのデータ ディクショナリ セクションの名前。文字ベクトルとして指定します。

例: 'Design Data'

例: 'Configurations'

例: 'EmbeddedCoder'

データ型: char

バージョン履歴

R2015a で導入