LQR control for 2-DOF mass spring damper system

Job ID: 33629509

Budget: $40 – $70 USD

I have a MATLAB code for an LQR control of mass-spring-damper system. But the answers has some problems. The bode plot and step response are not reasonable. The system is express as a state-space model. Please help me to fix the code and let me know the reason.

Contact me for details. Before contact, please make sure you have related experience.