Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB Please do not use any tools not included in the basic student matlab package. Drag force is a vector in the opposite direction of

MATLAB

image text in transcribedimage text in transcribed

Please do not use any tools not included in the basic student matlab package.

Drag force is a vector in the opposite direction of an objects velocity vector. Which means the governing differential equations of an apple thrown straight up can be modeled with a piecewise differential. 4.-g-c * ( . while the ball is apple is rising d-y dt2 cwhile the ball is apple is falling Where g is the acceleration due to gravity (9.8 m/s2 ) and c is the drag coefficient. Use odeset, "Events" with ode45 to find how long an apple will be in the air if: It is thrown straight up from an initial height of 2.5 m It has an initial velocity of 10 m/s C=0.1 * Write a script appleFlights.m Your script should solve the differential equations governing flight of an apple and plot the height of the Apple vs Time with and without Drag and display to the command window the time when the apple hits the ground for both scenarios. (hint: consider what "events" are occurring, what is the height (y) or velocity (y') when the apple starts falling down, and when it hits the ground) Drag force is a vector in the opposite direction of an objects velocity vector. Which means the governing differential equations of an apple thrown straight up can be modeled with a piecewise differential. 4.-g-c * ( . while the ball is apple is rising d-y dt2 cwhile the ball is apple is falling Where g is the acceleration due to gravity (9.8 m/s2 ) and c is the drag coefficient. Use odeset, "Events" with ode45 to find how long an apple will be in the air if: It is thrown straight up from an initial height of 2.5 m It has an initial velocity of 10 m/s C=0.1 * Write a script appleFlights.m Your script should solve the differential equations governing flight of an apple and plot the height of the Apple vs Time with and without Drag and display to the command window the time when the apple hits the ground for both scenarios. (hint: consider what "events" are occurring, what is the height (y) or velocity (y') when the apple starts falling down, and when it hits the ground)

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