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!