LQR Simulink block model

조회 수: 194 (최근 30일)
Ahmed
Ahmed 2013년 9월 15일
답변: Maxrwil Xlx 2021년 10월 14일
Can anyone send me a simulink block that solves lqr function please
  댓글 수: 2
Gurkan KAVURAN
Gurkan KAVURAN 2018년 5월 9일
https://www.mathworks.com/matlabcentral/fileexchange/67268-simulink-block-of-lqr
Mohammadreza Chalak Qazani
Mohammadreza Chalak Qazani 2019년 10월 19일
It is not working. Giving error about the reshape.

댓글을 달려면 로그인하십시오.

답변 (4개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 15일
편집: Azzi Abdelmalek 2013년 9월 15일
There is no such block, but you can call the LQR function from simulink by using Interpreted MATLAB Function
  댓글 수: 2
Ahmed
Ahmed 2013년 9월 16일
Can you send me example
Joschua
Joschua 2013년 12월 4일
Did this work for you? I'm trying to do code generation, but an error message appears, telling me that Intepreted MATLAB functions are not supported yet.

댓글을 달려면 로그인하십시오.


Pawel
Pawel 2013년 11월 11일
Send me also this example :) I have write an e-mail 2you.
  댓글 수: 1
Gurkan KAVURAN
Gurkan KAVURAN 2018년 5월 9일
https://www.mathworks.com/matlabcentral/fileexchange/67268-simulink-block-of-lqr

댓글을 달려면 로그인하십시오.


mira ismail
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.
  댓글 수: 3
iman ghaffari
iman ghaffari 2017년 8월 11일
Hi Nanu I am working on design LQR controller for quadrotor and I'm so confused . do u can help me? please connect with me. imanghaffari72@gmail.com
Gurkan KAVURAN
Gurkan KAVURAN 2018년 5월 9일
https://www.mathworks.com/matlabcentral/fileexchange/67268-simulink-block-of-lqr

댓글을 달려면 로그인하십시오.


Maxrwil Xlx
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
Type
lqrpilot
for the diagram and
lqrdes
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.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by