How do I get the names of all the enumerations in a class?

2 Ansichten (letzte 30 Tage)
Alok Virkar
Alok Virkar am 1 Dez. 2022
Kommentiert: Alok Virkar am 1 Dez. 2022
classdef WeekDays
enumeration
Monday, Tuesday, Wednesday, Thursday, Friday
end
end
if I have a class WeekDays, how do I display all of the enumerations in the command window?

Akzeptierte Antwort

C B
C B am 1 Dez. 2022
have you tried this?
enumeration WeekDays

Weitere Antworten (0)

Kategorien

Mehr zu Enumerations finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by