士心之约 发表于 2015-9-17 20:52

【MATLAB动画教程七】

%by dynamic
%see also http://www.matlabsky.com
%2008.6.23
%
t=0:pi/50:10*pi;
x=30*sin(t);
y=30*cos(t);
z=t;
plot3(x,y,z);
hold on
%axis equal
comet3(x,y,z,0.5)%by dynamic
%see also http://www.matlabsky.com
%2008.6.23
%
vx = 40;
t = 0:0.01:10;
x = vx*t;
y = -9.8*t.^2/2;
comet(x,y)%by dynamic
%see also http://www.matlabsky.com
%2008.6.13
%
vx = 100*cos(1/4*pi);
vy = 100*sin(1/4*pi);
t = 0:0.001:15;
x = vx*t;
y = vy*t-9.8*t.^2/2;
comet(x,y)
页: [1]
查看完整版本: 【MATLAB动画教程七】