Question

The equations of motion for a certain mechanical system with two degrees of freedom, can be written as a pair of coupled, second-order, differential equations: We can rewrite them in matrix form, A qdd B, to be solved simultaneously: mL62 sino-k (x-Lo M m mLcos0 Write a MATLAB program that: prompts the user to enter M. m, L, k, Lo, and g, initial x, e, i, and 6, and duration, provides default values of 1 kg, 1 kg, 1 m, 10 Nhm, 1 m, 9.81 m/s o m, o rad, 0 m/s, 0 rads, and 5 seconds so that the user can run the program without typing any values. For example: m str2num (input Enter mass m in kg (1): s)); default if isempty (m), m 1; end 8 if nothing entered, supply uses ode450 to solve these equations simultaneously, and qdd AMB; 8 calculate accelerations from inv (A) *B, but faster graphs both and 6 as functions of time on a single plot with appropriate axes labels tha include units, a legend, and a title the with all constants, arameters, and initial conditio p with units and formatted appropriately. Submit the following: your MATLAB program formatted in 10 pt courier font 1 plot showing the motion with the default values 1 plot showing noticeably different motion with a different set of values Exercise 2 Assemble a square matrix with the following algorithm: First, define the matrix with all zeros. Page 1 of 2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

Code:

Add a comment
Know the answer?
Add Answer to:
The equations of motion for a certain mechanical system with two degrees of freedom, can be...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT