이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
열거형
MATLAB Function 블록에 대한 열거형 데이터 정의 및 사용
열거형은 명명된 값으로 구성된 고정 세트를 나타냅니다. 열거형은 MATLAB® 코드를 더욱 읽기 쉽게 만들어 줍니다. MATLAB Function 블록에서 열거형 클래스는 Simulink.IntEnumType
, int8
, uint8
, int16
, uint16
또는 int32
에서 파생되어야 합니다. Simulink® Coder™를 사용하여 C/C++ 코드를 생성하는 경우 열거형 클래스 기본 유형에 따라 생성된 코드에서 열거형이 표현되는 방식이 결정됩니다.
블록
MATLAB Function | Include MATLAB code in Simulink models |
도움말 항목
- Code Generation for Enumerations
Use enumerations in MATLAB code intended for code generation.
- Add Enumerated Inputs, Outputs, and Parameters to a MATLAB Function Block
Use the Symbols pane and the Property Inspector to specify enumerated types for MATLAB Function block inputs, outputs, and parameters.