Identifying ordinal position of an enumerated value
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
is there a function, enum_ordinal for instance that returns an ordinal position of the enuerated value in the enumerated type?
classdef WeekDays
   enumeration
      Monday, Tuesday, Wednesday, Thursday, Friday
   end
end
temp=enum_ordinal(Tuesday)
temp = 2
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

