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!