Predicting initial angle of projectile
显示 更早的评论
I'm trying to solve the problem below "Find the appropriate initial angle θ, if v= 30 m/s, and the distance to the catcher is 90 m. Note that the throw leaves the right fielder’s hand at an elevation of 1.8 m and the catcher receives it at 1 m. y=(tan θ ) x- g*x^2 /(2 v^2 * (cosθ)^2)+y0; "
by plotting y vs theta graph, i have taken the range of theta = [0,pi], but i'm getting some abnormal graphs. Can anyone please help me out?
my code:
x = 90;
v = 30;
g = 9.8;
y0 = 1.8;
theta = linspace(0,pi,50);
y = x * tan(theta) - (g * x .^2)./(2*((cos(theta)).^2)*v .^2)+y0;
plot(theta,y),grid;

1 个评论
John D'Errico
2017-3-12
Show what you have done. As it is, you are just asking someone to do your homework, since we don't know what you have done.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!