Question: Hello, Please provide the complete MATLAB code for the following question for parts a and b. Please note when I try the code in MATLAB
Hello, Please provide the complete MATLAB code for the following question for parts a and b. Please note when I try the code in MATLAB environment, it must work. Also, please explain any for loop used in the code. Thank you.

1) A soccer ball weighing 450 g is kicked, giving the ball an initial velocity of 10 m/s at an angle of 30 off the ground. The trajectory of a ball in flight is given by the following equations: (t) v t cos 0 y (t) v sin 0 t gt wherexis the horizontal position, y is the vertical position, v is the velocity, g is the gravitational constant, 00 is the angle of the initial velocity with respect to the ground, and tis time. You may take g to be 9.8 m/s2. For this problem, your plots should start at t-0, and go until the time required for the ball to hit the ground. a) Create two plots in MATLAB: one with the distance traveled versus time, and the second with the height of the ball off the ground as a function of time. You may use any AtAt, as long as there are at least 10 points.) b) Create a plot showing the trajectory of the ball, performing the calculations with two different time intervals: One using a spacing between points (AtAt of 0.01 (indicate with "x" markers and a second using At 0.05At 0.05 indicate with 'o' markers). These should be plotted on the same set of axes. Use a legend to indicate the different data series (Hint: if you use the text Delta in a text string for the axis labels, it will display as AA)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
