平抛运动
clear;clc;figure
vx =50; %初速度
t =0:0.001:10; %时间向量
x = vx*t; %x方向
y =-9.8*t.^2/2; %y方向
comet(x,y) %
clear;clc;figure
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)