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

7 views (last 30 days)
classdef WeekDays
Monday, Tuesday, Wednesday, Thursday, Friday
if I have a class WeekDays, how do I display all of the enumerations in the command window?

Accepted Answer

Chetan Bhavsar
Chetan Bhavsar on 1 Dec 2022
have you tried this?
enumeration WeekDays
  1 Comment
Alok Virkar
Alok Virkar on 1 Dec 2022
I havnt, just discovered it myself and came here to post it.
Thank you!

Sign in to comment.

More Answers (0)


Find more on Enumerations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!