Is it possible to add methods on the fly to MATLAB classes?
Writing a subclass of dynamicprops allows to me to add properties dynamically to an object: addprop(obj, 'new_prop') This is great, but I would also love to create set / get functions for these properties on the fly. Or analysis functions that work on these dynamic properties. My experience with Matlab has been so far, that once I create an instance of a class, adding new methods is not possible. That is very cumbersome, because my object may contain a lot of data, which I'll have to re-load every time that I want to add a new method (because I have to do clear classes ). So is there a way to