LQR Simulink block model
184 次查看（过去 30 天）
mira ismail 2015-4-26
Hi, can I have the example? I'm trying to generate simulink model using LQR, but its a bit confusing.
Maxrwil Xlx 2021-10-14
There already is example where the LQR is created via blocks in SImulink: https://www.mathworks.com/help/control/getstart/design-an-lqr-servo-controller-in-simulink.html
for the diagram and
to calculate the LQR gain (or call CTRL+D on the lqrdes to view the code).
If you want to build LQR gain during simulation. You have to use the block in File Exchage: https://www.mathworks.com/matlabcentral/fileexchange/67268-simulink-block-of-lqr as others suggested.