chenhan 发表于 2011-3-4 07:36

自编的小程序

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)

chenhan 发表于 2011-3-4 07:37

很简单的一系列的三维图形动作

yangzh4645 发表于 2011-3-4 12:43

既然你诚信诚意的推荐了,那我就勉为其难的听听吧!
我是不是太肉麻了!数学中国社区我来了!

刘小奔 发表于 2011-3-13 19:44

你把头像换换,跟要债似的,哈哈

高阳皇 发表于 2011-3-13 19:51

其实我一直觉得楼主的品味不错!呵呵!
数学中国社区太棒了!
页: [1]
查看完整版本: 自编的小程序