自编的小程序
clc;clear;clf;t=0:0.5:4*pi;
=meshgrid(t);
t1=timer('Period',1.0,'Executionmode','fixedrate','StartDelay',0.5);
set(t1,'TimerFcn',['current_t=datestr(clock,''mmm.dd,yyyy HH:MM:SS'');',...
'title(current_t,''edgecolor'',''red'',''backgroundcolor'',,''fontsize'',16)']);
start(t1);
h=plot3(0,0,0,'marker','D','markersize',15);axis off
c=reshape(t,1,numel(t));
d=reshape(x,1,numel(t));
for i=1:numel(t)
y(i)=exp(-0.2*c(i)).*sin(pi/24*c(i)-d(i));
set(h,'xdata',c(i),'ydata',d(i),'zdata',y(i));
if i==1
line(c(i),d(i),y(i),'color',);
else
line(c(i-1:i),d(i-1:i),y(i-1:i),'color',,'linewidth',2);
end
pause(0.003);
end
cla;
z=exp(-0.2*t).*sin(pi/24*t-x);
surf(t,x,z);
axis off
colormap hot
shading interp
material metal
spinmap(10,2);
stop(t1)
很简单的一系列的三维图形动作
既然你诚信诚意的推荐了,那我就勉为其难的听听吧!
我是不是太肉麻了!数学中国社区我来了!
你把头像换换,跟要债似的,哈哈 其实我一直觉得楼主的品味不错!呵呵!
数学中国社区太棒了!
页:
[1]