Question: Please solve coding problem with Matlab. include problem statment, code precedure and conclusion. Problem 2 The distance projectile travels when fired at the angle is
Problem 2 The distance projectile travels when fired at the angle is a function of time and can be divided into horizontal and vertical distances according to the formulas horizontal(t)=tV0cos() and vertical(t)=tV0sin()21gt2 where horizontal = distance traveled in the x direction vertical = distance traveled in the y direction V0= initial velocity gt=accelerationduetogravity,9.8m/s2=time,s. Suppose the projectile just described is fired at an initial velocity of 100m/s and a launch angle of 44(45). Graph the distance traveled both horizontally and vertically (in the x and y directions) for times from 0 to 20s with a spacing of .01 seconds a) Graph horizontal distance versus time for a launch angle of 4(45) in figure(1) i) Time on the x-axis and horizontal on the y-axis. b) In a new figure window, figure(2), plot the vertical distances versus time for a launch angle of 4(45) i) Time on the x-axis and vertical on the y-axis. Don't forget the title and labels. c) Assuming now we have 3 different launch angles of 2,4,6. Calculate and output the 3 new vectors for each of the vertical (v1, v2, v3) and horizontal (h1, h2, h3) distances traveled. Output the distance traveled at .01, .1, .5, 1,5, and 10 seconds either in a vector ( 16 )or a table. i) Look at the debugging video if you want to learn about making tables in matlab. d) In a new figure window, figure(3), graph the horizontal distances on the x-axis and vertical distance is on the y-axis for all three cases. (You'll have 3 lines in one graph.) e) For the plot made in part d make one line solid, one dashed, and one dotted. Add a legend to identify which line is which
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
