1. Increase the value of the regularization parameter, if applicable.
  2. Consider using a different control design method, such as pole placement or H-infinity control.
  3. Check for errors in the system model or measurement data.
  4. Consult with an expert in control theory for further assistance.
The lqr command failed to stabilize the plant or find an optimal feedback gain To remedy this problem1 Make sure that all unstable poles of A are controllable through B use MINREAL to check2 Modify th