MATLAB Write a user defined function for a projectile motion. If a ball is launched from…

MATLAB
Write a user defined function for a projectile motion. If a ball
is launched from initial position(0,0) with a velocity v0 at angle
θ, determine your horizontal and vertical position. Please plot x
vs. t, y vs. t and y vs. x.