You can change the definition of an enumerated data type by editing and saving the file that contains the definition. You do not need to inform MATLAB® that a class definition has changed. MATLAB automatically reads the modified definition when you save the file. However, the class definition changes do not take full effect if class instances (enumerated values) exist that reflect the previous class definition. Such instances might exist in the base workspace or might be cached. The following table explains options for removing instances of an enumerated data type from the base workspace and cache.
|If In Base Workspace...||If In Cache...|
|Do one of the following:|