【发布时间】:2016-05-15 19:52:09
【问题描述】:
我想绘制不同角度的曲线
v=10;
teta=20; % angle of the projectile motion
vx=v*cos(teta); % velocity in x axis
vy=v*sin(teta); % velocity in y axis
x=0:20;
y=zeros(size(x));
y=vy.*(x./vx)-(0.5*9.81*(x./vx).^2); % here I calculate the height of the ball in y axis
plot(x,y)
set(gca,'ylim',[0,5])
如何每次更改 theta 以在同一图中绘制 20 度、40 度和 60 度的 theta?
谢谢
【问题讨论】:
标签: matlab