gatilt.m

来自「这是几何代数的matlab工具包」· M 代码 · 共 57 行

M
57
字号
function GAtilt(deg, sec)% GAtilt(d,s): Tilt the views in all subwindows simultaneously%  The arguments are optional.%   d: the number of total degrees (default 360)%   s: The number of seconds to rotate before stopping (default 10)%%See also gable.% GABLE, Copyright (c) 1999, University of Amsterdam% Copying, use and development for non-commercial purposes permitted.%          All rights for commercial use reserved; for more information%          contact Leo Dorst (leo@wins.uva.nl).%%          This software is unsupported.if nargin==0  deg = 360;end[az el] = view;if nargin < 2  sec = 10;endn = 100;iel = el;                      sp = get(gcf,'Children');for j=1:length(sp)  subplot(sp(j))  axis vis3dendi = 0;iang = deg/sec/10;  ticfor i=1:2  for j=1:length(sp)    subplot(sp(j))    view([az el+i*iang])  end  drawnowends = toc ;ts = s;n = floor(sec*2/s) ;ang = (deg-2*iang)/(n -2);                         ticel = el + 2*iang - 2*ang;for i=3:n  for j=1:length(sp)    subplot(sp(j))    view([az el+i*ang])  end  drawnowends = toc ;% ts = ts + s% az+n*ang-iaz            

⌨️ 快捷键说明

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