Why do I receive an error when trying to use a figure's toolbar before MATLAB 6.1 (R12.1)?
I am trying to use the toolbar in my figure, but I receive the following error:
??? Error using ==> get Invalid handle. Error in ==> D:\Applications\MATLABR12\toolbox\matlab\graphics\getappdata.m On line 24 ==> value = get(h, 'ApplicationData'); Error in ==> D:\Applications\MATLABR12\toolbox\matlab\graph2d\plotedit.m On line 135 ==> if isempty(getappdata(f,'ScribePlotEditState')) Error in ==> D:\Applications\MATLABR12\toolbox\matlab\graph2d\scribeclearmode.m On line 21 ==> feval(func,s{2:end}); Error in ==> D:\Applications\MATLABR12\toolbox\matlab\graph2d\plotedit.m On line 129 ==> scribeclearmode(f,'plotedit',f,'off'); Error in ==> D:\Applications\MATLABR12\toolbox\matlab\graph2d\putdowntext.m On line 54 ==> plotedit(fig,'on'); ??? Error while evaluating uitoggletool ClickedCallback.
This happens when I try to use either of the following toolbar buttons:
Edit Plot Insert Text Insert Arrow Insert Line Zoom In Zoom Out Rotate 3D
To create the figure, I used the following code and sequence of events:
figure(2)plotedit onplotedit offhgsave(2,'temp.fig')close allopen('temp.fig')
Then I clicked on the Edit Plot toolbar button and received the error.
Best Answer