Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The biceps and triceps can be modeled by the spring mass damper system shown in the figure to the left and the differential equation below.

The biceps and triceps can be modeled by
the spring mass damper system shown in the figure
to the left and the differential equation below.
ddt=-(cB+cT)m**ddt-(kB+kT)m**+kT**Lrest+kB**Lrestm+Fexternalinputm
where the system resting length is Lrest=12**(ActB-ActT),
kT and kB are the biceps and triceps spring constants and CT and CB are the damping constants, given by
kT=ActT**40;kB=ActB**20
cT=1+kT5;cB=1+kB5
We were previosusly given activations ActT and ActB and asked to find the response. In this lab, we will observe
experimental data of the response of the arm to stimulation, and use lsqcurvefit and odeXX to estimate the mass
of the arm m, as well as the activation levels that resulted in the observed response.
In MATLAB: Load FESdata.mat. This should create four variables in the workspace.
Model system using armPosition1.(3 pts)
a. Estimate values for m,ActT and ActB that would result in the observed position response
armPositionI. Do this using a for loop that iterates 25 times. Remember:
i. Assume the external perturbation that created this response was fext=80u(t)e-t3.
ii. Also assume zero initial conditions for position and velocity.
iii. When passing the initial guesses to lsqcurvefit, pass new random values each iteration.
iv. Save all results from Isqcurvefit from every iteration.
v. MAKE SURE YOUR BOUNDS, INITIAL GUESSES, AND PARAMETERS ARE IN THE
SAME ORDER!
b. Find the iteration that produced the results with the least error, that is, with a resnorm as close to 0 as
possible. This is your best model. Then, in Figure 1, a 3 row x2 column subplot:
i. In position 1: Plot the experimental data armPosition I vs time as blue dots, and the response
of your BEST model vs time as a solid black line on the same axis.
ii. In position 2: Plot your residuals (not your resnorm) for your BEST model, also vs time.
iii. For both plots, be sure to label your axes. Create a title that has the values of m,ActT and
ActB for the left plot and a title with the amount of error in the mode (resnorm)l for the right
plot.
c. Create a second figure, a 31 subplot:
i. Plot the amount of error (resnorm) versus each call to lsqcurvefit.
Redo for armPosition2. Use subplot 2 of Figure 2 and subplots 3 and 4 of Figure 1.(1pt)
Redo for armPosition 3. Use subplot 3 of Figure 2 and subplots 5 and 6 of Figure 1.(1 pt)
image text in transcribed

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 Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago