Identifying ordinal position of an enumerated value
    5 visualizzazioni (ultimi 30 giorni)
  
       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
Risposte (0)
Vedere anche
Categorie
				Scopri di più su Decision Logic in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!