I created a GUI using GUIDE in MATLAB 7.0.1 (R14SP1). The GUI contains an "axes" object and has the following code in its "OpeningFcn", which creates a plot inside the axes:
plot(1:10,'parent',handles.axes1)zoom on
When I run the GUI, if I right-click (or Ctrl+click in Mac OS X) outside the axes and select "Zoom Out" from the contextmenu I receive the following error:
??? Error using ==> eq Matrix dimensions must agree. Error in ==> zoom>localUIContextMenuCallback at 475 applyzoomfactor(hZoom,findaxes(hZoom),.9); ??? Error while evaluating uimenu Callback.
Best Answer