Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions