www.gusucode.com > ecoder 案例源码程序 matlab代码 > ecoder/myEnumType.m

    classdef myEnumType < Simulink.IntEnumType
    
    enumeration
        Choice1(0)
        Choice2(1)
    end %enumeration
    
    methods (Static)
        function retVal = getHeaderFile()
            retVal = 'myEnumHdr.h';
        end %function
        function retVal = getDataScope()
            retVal = 'Exported';
        end %function
    end %methods
    
end %classdef