mmspin3d.m

来自「一套从入门到精通的Matlab学习教材」· M 代码 · 共 29 行

M
29
字号
function M=mmspin3d(n)%MMSPIN3D Make Movie by 3D Azimuth Rotation of Current Figure.% MMSPIN3D(N) captures and plays N frames of the current figure% through one rotation about the Z-axis at the current elevation.% M=MMSPIN3D(N) returns the movie in M for later playing with movie.% If not given, N=18 is used.% MMSPIN3D fixes the axis limits and issues axis off.% D.C. Hanselman, University of Maine, Orono ME 04469% 3/4/95% Copyright (c) 1996 by Prentice Hall, Inc.if nargin<1, n=18; endn=max(abs(round(n)),2);axis(axis);axis offincaz=round(360/n);[az,el]=view;m=moviein(n);for i=1:n	view(az+incaz*(i-1),el)	m(:,i)=getframe;endif nargout,	M=m;else,		movie(m);end

⌨️ 快捷键说明

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