You can use the UISUSPEND command to suspend all the interactive properties of a figure. For more this function type:
at the MATLAB command prompt.
To disable only the Zoom In and Zoom Out buttons in the figure toolbar, you can use the following code according to your version of MATLAB.:
For MATLAB 6.5 (R13) and MATLAB 6.5.1 (R13SP1):
figure_handle=figure(1)
handles=findall(figure_handle,'type','uitoggletool');
index=logical(strcmp(get(handles,'Tag'),'figToolZoomOut')+strcmp(get(handles,'Tag'),'figToolZoomIn'));
zoom_handles=handles(index);
set(zoom_handles,'enable','off');
For MATLAB 7.0 (R14) and later
Beginning in MATLAB 7.0 (R14) the "Tag" properties of the Zoom In and Zoom Out buttons changed as illustrated below.
figure_handle=figure(1)
handles=findall(figure_handle,'type','uitoggletool');
index=logical(strcmp(get(handles,'Tag'),'Exploration.ZoomOut')+strcmp(get(handles,'Tag'),'Exploration.ZoomIn'));
zoom_handles=handles(index);
set(zoom_handles,'enable','off');
Best Answer