FUNCTION REFERENCE

dlyap

Solve discrete Lyapunov and Stein (discrete Sylvester) equations.

Solve discrete Lyapunov and Stein (discrete Sylvester) equations.

Syntax

X = dlyap(A,Q)

Syntax

X = dlyap(A,B,C)

dlyap(A,Q) solves A*X*A' - X + Q = 0; dlyap(A,B,C) solves A*X*B - X + C = 0 with C of size rows(A) by rows(B). Bartels-Stewart method on the triangular Schur forms of A and B (column-by-column back-substitution), no Kronecker matrix or inverse. A unique solution exists only when lambda_i(A)*lambda_j(B) differs from 1 for every eigenvalue pair; otherwise the error names that condition (relative tolerance 100*eps).

Example

A=[0.5 0.2;0 -0.4]; X=dlyap(A,eye(2)); norm(A*X*A'-X+eye(2))

Example

X=dlyap(0.5*eye(2),0.2,ones(2,1))

Differences from MATLAB: finite real double matrices with at most 512 rows. The generalized form dlyap(A,Q,[],E) is not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.