When I execute the following command in MATLAB:
clear classes
I get the following warning messages:
Warning: Objects of 'User1' class exist. Cannot clear this class or any of its super-classes. Warning: Objects of 'enum_deb' class exist. Cannot clear this class or any of its super-classes.
This happens after I create the object like so:
t = User1
and I
when I define the two classes like so:
User1.m:
classdef User1 < handle properties a=enum_deb; end methods function obj = User1() lh = addlistener(... obj.a,'updated',... @(src,event)lstnrCallback(obj,src,event)); function lstnrCallback(obj,src,event) disp('Listener Called'); end end endend
enum_deb.m:
classdef enum_deb < handle properties index = 0; end events updated endend
Best Answer