Question: What should i do , how is this programmed? In matlab? Use the following information in Problems l through 4: The distance a projectile travels

What should i do , how is this programmed? In matlab?  What should i do , how is this programmed? In matlab?

Use the following information in Problems l through 4: The distance a projectile travels when fired at an angle is a function of time and can be divided into horizontal and vertical distances according to the formulas Horizontal(t) = r V_o cos() and Vertical(t) = t V_o sin() - 1/2 gt^2 where Horizontal = distance traveled in the x direction, Vertical = distance traveled in the y direction, V_0 = initial velocity, g = acceleration due to gravity, 9.8 m/s^2 t = time, s. Suppose the projectile just described is fired at an initial velocity of 100 m/s and a launch angle of pi/4 (45 degree). Find the distance traveled both horizontally and vertically (in the x and y directions) for times from 0 to 20 s. (a) Graph horizontal distance versus time. (b) In a new figure window, plot vertical distance versus time (with time on the x-axis). *Don't forget a title and labels. In a new figure window, plot horizontal distance on the x-axis and vertical distance on the y-axis. Calculate three new vectors for each of the vertical (v_1, v_2, v_3) and horizontal (h_1, h_2, h_3) distance traveled, assuming launch angles of pi/2, pi/4, and pi/6. In a new figure window, graph horizontal distances on the x-axis and vertical distance on the y-axis, for all three cases. (You'll have three lines.) Make one line solid, one dashed, and one dotted. Add a legend to identify which line is which. Re-create the plot from Problem 3. This time, create a matrix theta of the three angles. pi/2, pi/4, and pi/6. Use the meshgrid function to create a mesh of theta and the time vector (t). Then use the two new meshed variables you create to recalculate vertical distance (v) and horizontal distance (h) traveled. Each of your results should be a 20 times 3 matrix. Use the plot command to plot h on the x-axis and v on the y-axis

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!