I'd like to be able to define my own attributes in classes, but I'm not finding any documentation as to how that might be done. My main goal is to be able to create a property attribute, "UseAsReference", that marks object properties that need to be saved and loaded via custom methods because they are references to other Matlab handle objects. I'm hoping to accomplish this with property attributes and a superclass rather than defining an interface so that I don't have to worry about maintaining a constant list of reference properties and custom save/load functions for each implementing member. The pages for property and method attributes note that inheriting from certian frameworks (e.g., the UnitTest framework) will open up more attributes that a class can use. Is it possible to replicate this functionality?
MATLAB: Custom class property and method attributes
attributeattributesframeworkMATLAB
Related Question
- Do I receive a “Error loading an object of class ‘proplistener'” warning when I LOAD the object that has an event listener in MATLAB 7.7 (R2008b)
- How to hide away properties of an object
- Matlab parfor saves and loads temporary variables during execution!
- Custom Object property save/load problem
- Do I get “Warning: Cannot load an object of class ‘UIControl'” and how can I fix it
Best Answer