Is there a way to change the attributes of a class without using dynamicprops? I would like to be able to hide and reveal properties based on how objects are being used. The properties would all be defined in the class definition, but I can't find a way to change the attributes after the object is created.
MATLAB: Changing property attributes in a value class
objects class property attributes
Related Question
- Overriding subsref and subsasgn – effect on private properties
- How to list only those methods defined or overloaded in a certain classdef file
- Do I get an error if do not define a constructor in the inherited class
- How to hide away properties of an object
- Overriding “get”-able properties.
- [Warning] Why is it bad practice to set additional class properties when using a set method (prompting a warning)
- How to implement MyClass that overloads all methods of a certain naitive class
Best Answer