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

3 vues (au cours des 30 derniers jours)
Alok Virkar
Alok Virkar le 1 Déc 2022
Commenté : Alok Virkar le 1 Déc 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?

Réponse acceptée

Chetan Bhavsar
Chetan Bhavsar le 1 Déc 2022
  1 commentaire
Alok Virkar
Alok Virkar le 1 Déc 2022
I havnt, just discovered it myself and came here to post it.
Thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Enumerations dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by