数学建模社区-数学中国

标题: 【MATLAB动画教程七】 [打印本页]

作者: 士心之约    时间: 2015-9-17 20:52
标题: 【MATLAB动画教程七】
  1. %by dynamic
  2. %see also http://www.matlabsky.com
  3. %2008.6.23
  4. %
  5. t=0:pi/50:10*pi;
  6. x=30*sin(t);
  7. y=30*cos(t);
  8. z=t;
  9. plot3(x,y,z);
  10. hold on
  11. %axis equal
  12. comet3(x,y,z,0.5)
复制代码
  1. %by dynamic
  2. %see also http://www.matlabsky.com
  3. %2008.6.23
  4. %
  5. vx = 40;
  6. t = 0:0.01:10;
  7. x = vx*t;
  8. y = -9.8*t.^2/2;
  9. comet(x,y)
复制代码
  1. %by dynamic
  2. %see also http://www.matlabsky.com
  3. %2008.6.13
  4. %
  5. vx = 100*cos(1/4*pi);
  6. vy = 100*sin(1/4*pi);
  7. t = 0:0.001:15;
  8. x = vx*t;
  9. y = vy*t-9.8*t.^2/2;
  10. comet(x,y)
复制代码






欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5