Matlab 电影动画(Rotate Peak)
代码
%电影动画(Rotate Peak)
figure('toolbar','none','NumberTitle','off','name','电影动画(Rotate Peak)');
[X,Y,Z]=peaks(30);
surfl(X,Y,Z);
axis([-3 3 -3 3 -10 10]);
axis off;
shading interp;
colormap hot;
m=moviein(15);
for i=1:15
view(-37.5+24*(i-1),30);
m(:,i)=getframe;
end
movie(m);
效果