State-Space Matrices
Mostra commenti meno recenti
Hello.Why do we write A-B*K1 in the example of LQR Control using State-Space Matrices in Matlab?Why is B negative?If anyone knows,can you please explain?

Risposta accettata
Più risposte (1)
I added a simple example to show you. If you like this example, consider voting 👍 the Answer. Thanks!
Say, the reference state is 1.
A = [0 1; 2 3];
B = [0; 1];
K1 = lqr(A, B, eye(2), 1)
sys1 = ss(A-B*K1, B, [1 0], 0)
step(sys1, 20)
The step response shows that the output won't reach 1. Thus, a pre-compensator is needed:
N = 1/dcgain(sys1) % pre-compensator
sys2 = ss(A-B*K1, N*B, [1 0], 0)
step(sys2, 20)
1 Commento
Aysel Alimirzayeva
il 5 Nov 2022
Categorie
Scopri di più su State-Space Control Design in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

