Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Algèbre Lineaire > Matrice compagnon > sylv


Sylvester equation.

Calling Sequence

sylv(A, B, C, flag)



three real matrices of appropriate dimensions.


character string ('c' or 'd')


X= sylv(A, B, C, 'c') computes X, solution of the "continuous time" Sylvester equation

A*X+X*B = C

X=sylv(A, B, C, 'd') computes X, solution of the modified "discrete time" Sylvester equation

A*X*B+X = C

X=-sylv(-A, B, C, 'd') computes X, solution of the real "discrete time" Sylvester equation

A*X*B-X = C


// Continuous time Sylvester equation:
A = rand(4, 4); C = rand(4, 3); B = rand(3, 3);
X = sylv(A, B, C, 'c');

// Modified Discrete time Sylvester equation:
X = sylv(A, B, C, 'd');

// Real Discrete time Sylvester equation:
X = -sylv(-A, B, C, 'd');

See Also

  • lyap — Equation de Lyapunov
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:21:39 CEST 2015