Predicting initial angle of projectile
Afficher commentaires plus anciens
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 commentaire
John D'Errico
le 12 Mar 2017
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!