Write a MATLAB script that determines the steady-state quadratic regulator for the inertial system of Example 10.4 for r = 1 and different values of Q. Use the following three matrices, and discuss the effect of changing Q on the results of your computer simulation
![186_0ac62fe3-6f91-45fb-897e-a059c2160b6b.png](https://secure.tutorsglobe.com/CMSImages/186_0ac62fe3-6f91-45fb-897e-a059c2160b6b.png)
![2168_0128b165-a052-417d-85a5-fb2c641bd0a4.png](https://secure.tutorsglobe.com/CMSImages/2168_0128b165-a052-417d-85a5-fb2c641bd0a4.png)