定义枚举类 - MATLAB & Simulink - MathWorks 中国

classdef Enum[ < SubInt]

enumeration

Item[ (val)][, …]

[…]

end

end