MATLAB: Am I unable to zoom out of a figure by right-clicking on the figure window when the “zoom” property is “on” in MATLAB 7.0 (R14)

clickfigureMATLABoutr14rightright clickwindowzoom

In previous versions of MATLAB, I was able to zoom out of a figure simply by right-clicking on the figure when the "zoom" property is "on". Now, when I right-click on the figure, I receive several zoom options.

Best Answer

Starting from MATLAB 7.3 (R2006b), it is possible to use the RIGHTCLICKACTION property of the zoom object to revert to the old behavior of the using the mouse right-click to zoom out of a figure. The following example illustrates this:
surf(peaks)
h = zoom(gcf)
set(h,'rightclickaction','inversezoom')
If you are using a previous version of MATLAB, to work around this issue, hold down the Alt-key when left-clicking on the figure, and the figure will automatically be zoomed out.