Question: help with matlab coding X = Voxt 1 y = Voyt + 2.962 where x and y are the horizontal and vertical displacements, Vox and

help with matlab coding
X = Voxt 1 y = Voyt + 2.962 where x and y are the horizontal and vertical displacements, Vox and Voy are the horizontal and vertical components of the initial velocity, t is time, and g is acceleration due to gravity (-9.81m/s2). Let's say a softball player makes good contact with a pitch. The ball goes into the air at some angle. a) Assign the initial horizontal velocity v_0x as 33m/s and the initial vertical velocity v_0y as 22 m/s. Assign the horizontal distance to the home run boundary, HR_h, as 99 meters and the vertical distance, HR_v, as 3 meters. Assign horizontal displacement of the ball to x and vertical displacement of the ball to y using the equations above for times t: 0 to 4.5 seconds with increments on 0.1 seconds. b) On a 2 x 1 subplot grid, plot the time t vs. horizontal displacement x with a vertical line at the distance needed for a homerun. Then, plot the vertical displacement y vs. time t with a horizontal line at the height needed for a homerun. Hint: use doc in your Command Window to read about 'xline' and 'yline! c) Title the plots 'Softball Hit Horizontal Displacement and 'Softball Hit Vertical Displacement', respectively. Make sure to label the x-axis and y-axis for each plot, as well. Through inspection of the plots, did the player hit a home run? Comment this in your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
