Question: 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 this?
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 freefall
follows the differential equation
where is downward velocity. Assume that an object is released so that and you
measure the following data:
The code dragSolution provided will solve the initial value problem
for a given value of and will solve it from to Use 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 and gives two outputs
and just like the eulerMethod method from a previous assignment. Make sure your
code stores the appropriate variables to get the data you need.
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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
