Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 9, in the most basic code for animation in matlab please Zoom Out Zoom to Fit Hand Tool Start Reading Stop Reading Hide Navigation

Question 9, in the most basic code for animation in matlab please image text in transcribed
Zoom Out Zoom to Fit Hand Tool Start Reading Stop Reading Hide Navigation Page Layout 9. Vertical motion and energy. If an object is shot upward with an initial vertical velocity vo, its height at any time t can be calculated by the equation: where ho is the initial height of the object, and g=9.8 m/s, the acceleration due to gravity. The object's potential energy PE (its energy due to its position above the ground), kinetic energy KE (the energy associated with its movement) and total mechanical energy TE (potential energy +kinetic energy) can also be calculated at each time t, using the following equations: KE = 1/2mv2 TE=PE + KE where m is the mass of the object, and v is the vertical velocity of the object. The vertical velocity of the object is the derivative of the height with respect to time, dh/dt Write a program, verticalMotion.m, for a 58 g tennis ball that is hit upward from an initial height of 0.8 m at a speed of 60mph (17.8m/s). which computes for Nt-500 timesteps and Tfinal = 4 s. a. The height, h, of the ball. bThe ball's vertical velocity, dh/dt c. Its potential energy (PE), kinetic energy (KE) and total energy (TE). Using the subplot command (use doc subplot to get information on the subplot command) to plot and animate (with Nstride-20) the following three graphs: aThe height, h, of the tennis ball. b. The vertical velocity, dh/dt, of the ball vs. time. cThe PE, KE, and TE of the ball vs. time. Use the 1 egend command to create a legend that distinguishes the graphs from one another. Each plot should be titled and each axis should be labeled. Note: After the plot is complete, the legend can be dragged using the cursor to get a better view of the energy plot

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

Question

Define Administration and Management

Answered: 1 week ago

Question

Define organisational structure

Answered: 1 week ago

Question

Define line and staff authority

Answered: 1 week ago