huituxj1.m

来自「包括MATLAB7.0实用指南(1)书中所有的例子的源代码。」· M 代码 · 共 16 行

M
16
字号
load cape;
image(X);
colormap(map);
axis image;
%camva(camva/2.5)
while 1
    [x,y]=ginput(1);
    if ~strcmp(get(gcf,'SelectionType'),'normal')
        break
    end
    ct=camtarget;
    dx=x-ct(1);
    dy=y-ct(2);
    camdolly(dx,dy,ct(3),'movetarget','data')
    drawnow
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?