Question: ** IN MATLAB** PLEASE SHOW FULL CODE a) The motion of a given vehicle can be modeled by the ordinary differential equation y + 4

** IN MATLAB**

PLEASE SHOW FULL CODE

** IN MATLAB** PLEASE SHOW FULL CODE a) The motion of a

a) The motion of a given vehicle can be modeled by the ordinary differential equation y + 4 y + 6y = 0. Analytically convert this ordinary differential equation into an equivalent system of coupled first order ordinary differential equations. b) A particular spring-mass system can be modeled by the coupled ordinary differential equations { m_1x_1 + k_1 x_1 + k_2(x_1 - x_2) = 0 m_2x_2 + k_2(x_2 - x_1) = 5sin(t) Analytically convert this coupled ordinary differential equation system into an equivalent system of coupled first order ordinary differential equations. Use ode45 and one other solver of your choice to numerically solve the systems in Problem 1, and plot your states vs. time. Supply your own initial conditions, time steps, and time intervals. Experiment with how the results change based on varying these inputs, and comment on your observations in a statement that prints to the Command Window. In the case of Problem 1(a), since this is a second order ordinary differential equation, you will need to specify two initial conditions: y(0) and y(0). In the case of Problem 1(b), since this is a coupled system of second order ordinary differential equations, you will need to specify four initial conditions: x_1 (0), x_1 (0), x_2(0), and x_2 (0). Use a value of 10 N/m for k_1, 5 N/m for k_2, 15 kg for m_1, and 12 kg for m_2

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 Databases Questions!