Question: Using Matlab to set up a coruse for a projectile. Warning! Do not use advanced features of MATLAB that we have not covered in the
Using Matlab to set up a coruse for a projectile.

Warning! Do not use advanced features of MATLAB that we have not covered in the course. You are to complete the assignment with the features and functions covered in the text reading assignments, homework sets, and class lectures. Problem: After t seconds, the height and speed of a projectile launched with an initial speed of v_0 at an angle A (to the horizontal) are given by: h(t) = V_0 t sin (A) - 0.5g t^2 v(t) = squareroot v_0^2 - 2v_0 g t sin(A) + g^2 t^2 Where g is the acceleration due to gravity (9.81 m/s^2). The projectile will strike the ground when h(t) = 0, which gives the time to hit: t_hit = 2(v_0/g) sin (A) For example, if A = 30 degree, and V_0 = 40 m/s, then t_hit = 4.0775 seconds Create a script file that prompts the user for the launch angle, A, (input from the command window), and then uses this value to generate a plot with three curves. Each curve will show the trajectory of the projectile (height as a function of time) for one of the following launch velocities: 30, 40, and 50 meters/second. Your plot should include a legend indicating which curve corresponds to which launch velocity, and all other appropriate labeling. Your script file should also display the "time to hit" for the three different launch velocities as output to the command window
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
