'lqr' requires Control System Toolbox.
Ältere Kommentare anzeigen
I've tried every possible option to check the error in this simple code. But Matlab throws me this error:
'lqr' requires Control System Toolbox.
Error in LST_lqrhw (line 19)
[K, S, e] = lqr(A, B, Q, R);
Can anyone help me with this or suggest an alternate method?
clear
clc
close all
A = [0 1;
1 1];
B = [1;
0];
Q = [1 0;
0 1];
R = [1;
0];
[K, S, e] = lqr(A, B, Q, R);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Tuning Goals finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!