getzoom.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 34 行
M
34 行
function [z, pos]=getzoom(h)%GETZOOM Get the actual zoom.%% [Z, CPOS]=GETZOOM(AX)%% AX is the axes handle.% Z is the number of zooming% CPOS is the x,y coordinate of the center.%% See also IMZOOM%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global Hif nargin > 1 error('Too many input arguments.');endif nargin == 0 h=gca;endaxes(h);ax=axis;ss=scansize(H);z=log(ss/(ax(2)-ax(1)))/log(2);pos=[ax(1)+(ax(2)-ax(1))/2 ax(3)+(ax(4)-ax(3))/2];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?