setzoomstatus.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 47 行
M
47 行
function setzoomstatus(z)%SETZOOMSTATUS Set the zoom status for the current figure.%% SETZOOMSTATUS(ZOOMSTAT)%% SETZOOMSTATUS sets the zoomstatus to the value specified by the% ZOOMSTAT argument.%% ZOOMSTAT = 1 turns the zoom on% ZOOMSTAT = 0 turns the zoom off% ZOOMSTAT = -1 turns the zoom off and disable the menu item%% Called with no arguments, SETZOOMSTATUS, will toggle the zoom status.%% Claudio - 28 Sept, 1995%%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%zi=findobj('tag', 'ZOOMITEM');if nargin == 0 z = getzoomstatus; if z ~= -1 z=~z; endendif z == 1 zoom on; set(zi,'Label','Zoom off','Enable','on', 'userdata', z);endif z == 0 zoom off; set(zi,'Label','Zoom on','Enable','on', 'userdata', z);endif z == -1 zoom off; set(zi,'Label','Zoom on','Enable','off', 'userdata', z);endreturn
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?