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

📄 movieexample.m

📁 《精通matlab7》“mastering matlab 7”的代码。
💻 M
字号:
% movie making example: rotate a 3-D surface plot
[X,Y,Z]=peaks(50);         % create data
surfl(X,Y,Z)               % plot surface with lighting
axis([-3 3 -3 3 -10 10])   % fix axes so that scaling does not change
axis vis3d off             % fix axes for 3D and turn off axes ticks etc.
shading interp             % make it pretty with interpolated shading
colormap(copper)           % choose a good colormap for lighting
for i=1:15                 % rotate and capture each frame
   view(-37.5+15*(i-1),30) % change the viewpoint for this frame
   m(i)=getframe;          % add this figure to the frame structure
end
cla       % clear axis for movie
movie(m)  % play the movie

⌨️ 快捷键说明

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