I've been getting this error recently, and I've tracked it down to this line of code:
annotation('textbox','String','testing');
After closing the figure that appeared, I entered:
clear classes
And then I get the following error:
Warning: Objects of graphics.plotmanager class exist - not clearing this class or any of its super-classes
Can anyone reproduce the same error?
Regards,
Yu Ang
PS: Error only appeared when I do this in MATLAB 2011a.
No error appeared when I do the same on MATLAB 2010b.
PPS: I suspect that something was modified, as I did not have the same error message earlier before.
Try this:
- Start a fresh MATLAB
- Type: >> plot(1:10);
- On the figure window open and close plot tools (you dont need to do anything else)
- Close the figure window
- Type: >> clear classes;
- You should see:
Warning: Objects of graphics.plotmanager class exist - not clearing this class
or any of its super-classes
Its annoying but hasnt seemed to cause me any other issues so is tolerable.
"Yu Ang " <tan...@techsource.com.my> wrote in message <ish3jo$25n$1...@newscl01ah.mathworks.com>...
I've requested for technical support from Mathworks and they're looking into it.
Regards
Yu Ang
"owr" wrote in message <isjm63$hc2$1...@newscl01ah.mathworks.com>...
This is a general warning that you see from the class system when a class definition cannot be cleared because there are instances of it that still exist which also cannot be cleared. You see it here probably because the graphics.plotmanager class is a singleton and that singleton copy is not easy to clear.
The warning is expected and can be ignored. This can be done by the following command:
>> warning('off', ' MATLAB:ClassInstanceExists');
"Yu Ang Tan" <tan...@techsource.com.my> wrote in message <it3pv8$hv6$1...@newscl01ah.mathworks.com>...