sylv — Sylvester equation.
sylv(A,B,C,flag)
three real matrices of appropriate dimensions.
character string ('c' or 'd')
'c'
'd'
X = sylv(A,B,C,'c') computes X, solution of the "continuous time" Sylvester equation
X = sylv(A,B,C,'c')
X
A*X+X*B=C
X=sylv(A,B,C,'d') computes X, solution of the "discrete time" Sylvester equation
X=sylv(A,B,C,'d')
A*X*B-X=C
A=rand(4,4);C=rand(4,3);B=rand(3,3); X = sylv(A,B,C,'c'); norm(A*X+X*B-C) X=sylv(A,B,C,'d') norm(A*X*B-X-C)