MATLAB: I need help with this exercise.

projectilevelocity

An ball is launched at a velocity (V0) of 20 m/s in a direction making an angle (θ) of 25° upward with the horizontal. Use element by element math where appropriate.
• Find the x- and y- components of the projectile velocity, V. • Find the components of the projectile position, x and y. • Assume g = 9.8 m/s2. • Calculate the above values for time from 0-1.7 seconds in increments of 0.1 second.
Vx = V0cos(θ) x = V0cos(θ)t
Vy = V0sin(θ)-gt y = V0sin(θ)t-(1/2)gt^2

Best Answer

See my attached demo for a projectile that I did two years ago for my son's college physics class. It lets you specify just about every initial parameter you can think of and computes just about everything you could possibly want.