Question

# Homework 3 As you know very well from physics, if you hit a ball forward with...

Homework 3
As you know very well from physics, if you hit a ball forward with a certain angle and a certain speed, it makes an orbital movement.
The height of the ball is determined by the equation given below.
y(t)=y_0+v_y0 t-1/2 gt^2
Where y0 is the first location of the ball, vy0 is the initial vertical velocity of the ball and g is the gravitational acceleration.
After the ball is thrown, the horizontal distance is determined by the following equation.
x(t)=x_0+v_x0 t
If the ball is thrown at an angle θ relative to the earth and with an initial velocity v0, the horizontal and vertical initial components of the velocity are as follows:
v_x0=v_0 cosθ
v_y0=v_0 sinθ
The flight time of the ball is equal to the following equation.
t_flight=(2 v_y0)/g
Write a function that determines the trajectory of the ball for given initial velocity, thrown angle, initial horizontal and vertical location of the ball. Sample input will be v0=20m/s, x0=y0=0, θ=[10,80] and Δθ=10°.
Plot the trajectories of this ball and write the formatted output of the range of the ball against thrown angle to a file called “range_of_the_ball.txt”.
Write the formatted maximum range of the ball to a file called “range_of_the_ball.txt”.

can you please solve this on matlab?

#### Earn Coins

Coins can be redeemed for fabulous gifts.