필터 지우기
필터 지우기

Creating a class with enum

조회 수: 1 (최근 30일)
Abe
Abe 2014년 8월 11일
편집: Abe 2014년 8월 11일
How do I set a Simulink inport/outport data type equal to an enum? If I try, it looks like I need to make an enum class.
After making an enum class, Simulink still doesn't offer my enum class as an option.
The code in my .m enum class file reads:
classdef DesiredBlockMovement < Simulink.IntEnumType
enumeration
Coast(0)
Lower(1)
Hoist(2)
end
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by