Is there a possibility to create dynamic enumerations?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stijn Helsen
el 18 de Mzo. de 2020
Comentada: Stijn Helsen
el 27 de Mzo. de 2020
I like the enumeration class. For "normal programming" is works very nice. But sometimes it could be nice to change (mainly add) items in the enumeration list. This would be especially useful in combination with existing code (public and my own code).
So I wonder, is there a possibility of adding items to an enumeration, or creating an enumeration object dynamically (I mean without writing a classdef file)?
0 comentarios
Respuesta aceptada
Arnav Dubey
el 27 de Mzo. de 2020
As per my knowledge, No, MATLAB does not support dynamic enumerations.They are really only for the benefit of compile time, as they represent a fixed set of constants, hence having them changed during runtime makes their use redundant.
Más respuestas (0)
Ver también
Categorías
Más información sobre Enumerations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!