Question: write a matlab script The bodies A and B are oscillating in free vibration governed by the following differential equations: equation A : 5 x

write a matlab script
The bodies A and B are oscillating in free vibration governed by the following differential equations:
equation A :
5x+2x+3x=0;
equation B:
2x+x+2x=0
A and B are subjected to the same initial conditions where x(0)=0 and v(0)=0.1ms over the time interval 0 to 50 s with an increment of 0.001 s .
Use ode 45 to find the responses of A and B oscillating motion.
Plot the displacements of A and B on the same figure. Write axes titles, graph title, and legend.
Plot the velocities of A and B on another figure. Write legend.
The mass of B is increased to match the mass A(first coefficient of differential equation). Find the new response of B after the mass modification.
Compare the displacements and velocities of B before and after the mass modification by plotting the displacements on one figure and the velocities on another figure. Write legend.
Using subplot, plot the displacements and velocities of A and B(before and after the mass increase). Write title for each graph.
write a matlab script The bodies A and B are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mechanical Engineering Questions!