Identifying ordinal position of an enumerated value
Mostra commenti meno recenti
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
3 Commenti
Fangjun Jiang
il 24 Ott 2011
use {}Code format next time.
Jim Johnson
il 24 Ott 2011
Jim Johnson
il 19 Gen 2012
Risposte (0)
Categorie
Scopri di più su Stateflow in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!