MATLAB: How to disable the ZOOM context menu in MATLAB 7.6 (R2008a)

contextdisableMATLABmenumodeobjectoutright clickzoom

I want to disable the context menu at right-click when ZOOM is active. In previous releases I used right-click to zoom out.

Best Answer

To control the behavior of a right-click action when ZOOM is active change the property ‘rightclickaction’ of the zoom mode object.
A value of 'InverseZoom' causes a right-click to zoom out.
h=zoom(gcf);
set(h,'rightclickaction','InverseZoom');