⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gatilt.m

📁 这是几何代数的matlab工具包
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -