주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

getEntry

R2026b

클래스: coder.dictionary.Section
네임스페이스: coder.dictionary

Embedded Coder 딕셔너리 정의를 나타내는 coder.dictionary.Entry 객체를 반환합니다.

구문

entryObj = getEntry(sectionObj,defName)

설명

entryObj = getEntry(sectionObj,defName)는 coder.dictionary.Section 객체인 sectionObj 섹션에서 이름이 defName인 Embedded Coder 사전 정의를 나타내는 coder.dictionary.Entry 객체를 반환합니다.

입력 인수

모두 확장

코드 정의를 포함하는 Embedded Coder 사전 섹션으로, coder.dictionary.Section 객체로 지정됩니다. 섹션 이름은 코드 정의의 유형을 식별합니다.

Embedded Coder 사전 정의의 이름으로, 문자형 벡터 또는 string형 스칼라로 지정됩니다.

예: 'StorageClass2'

출력 인수

모두 확장

Embedded Coder 사전 항목으로, coder.dictionary.Entry 객체로 반환됩니다. 이 항목은 Embedded Coder 사전 섹션에 있는 코드 정의를 나타냅니다.

예제

모두 확장

RollAxisAutopilot 모델을 열고, coder.Dictionary 객체를 사용하여 Embedded Coder 사전(Dictionary)을 표현하십시오. 이 객체를 사용하여 스토리지 클래스 정의가 포함된 사전의 스토리지 클래스 섹션에 접근할 수 있습니다.

openExample('RollAxisAutopilot')
coderDictionary = coder.dictionary.open('RollAxisAutopilot');

Embedded Coder 사전의 스토리지 클래스 섹션을 나타내는 coder.dictionary.Section 객체를 생성합니다.

storageClassesSect = getSection(coderDictionary, 'StorageClasses');

ParamStruct라는 예제 스토리지 클래스를 coder.dictionary.Entry 객체를 사용하여 표현하십시오.

entryObj = getEntry(storageClassesSect,'ParamStruct')
Entry with properties:

          Name: 'ParamStruct'
    DataSource: 'RollAxisAutopilot'

버전 내역

R2019b에 개발됨