how to actually use lyap(A,Q)

11 views (last 30 days)
Sung-Wook Lee
Sung-Wook Lee on 28 Jun 2020
So, lyap(A,Q) finds the 'solution' of Lyapunov equation A(transpose)*P + P*A + Q = 0, where P and Q are positive semi-definite.
But how are we actually able to specify Q? I thought in reality, we are trying to find a Lyapunov 'candidate' rather than a solution, where P abd Q that is positive semi-definite, not that we already know the value of Q.
Any insights on this would very much be appreciated.
  2 Comments
Komal Rajana
Komal Rajana on 17 Jul 2020
try:
A=[1 2;-3 -4];
Q=[3 1;1 1];
% A*x+x*A'+Q==0
x = lyap(A,Q);
Sung-Wook Lee
Sung-Wook Lee on 19 Jul 2020
Thanks for the comment, Komal. But the question is basically asking practical use of this lyap function where Q and P are solution candidate, not a given matrix.

Sign in to comment.

Answers (1)

Fernando Duarte López
Fernando Duarte López on 1 Apr 2021
I have always used the identity matrix as Q.

Categories

Find more on Matrix Computations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!