Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can I get matlab code o f this? 1 . The first type of physical system we will analyze with this approach is an object

Can I get matlab code of this?
1. The first type of physical system we will analyze with this approach is an object falling under
gravity in the presence of drag. We know how gravity behaves, but we may not know the drag
coefficient for a given object. For example, assume that we know that an object in free-fall
follows the differential equation
dvdt=9.8-v2
where v is downward velocity. Assume that an object is released (so that v(0)=0) and you
measure the following data:
The code dragSolution provided will solve the initial value problem
dvdt=9.8-v2,v(0)=0
for a given value of , and will solve it from t=0 to t=Tf. Use Tf=2 and guess two
different values for the parameter and plot the solution for that along with the data.
Use red circles for the data and a blue line for the solution in each case (this means you will
be drawing two graphs here, each with two plots on it). How does the value of affect the
velocity over time? For example, if you increase , what happens?
Note: The dragSolution function gives takes two inputs and Tf) and gives two outputs
(t and v), just like the eulerMethod method from a previous assignment. Make sure your
code stores the appropriate variables to get the data you need.
2. The dragOptimization method provided will find the optimal value of by minimizing the
'squared error' between the generated solution and the given data. Use the provided code to
find this optimal value of for the data above. What is the value of ? Plot the solution
for that value of with the physical data given (this will require using the dragSolution
method from the previous part). Do they match exactly?

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago