State space (2 states)

control.state_space2

Linear system x' = A x + B u, y = C x + D u with two states, one input and one output. x1 and x2 start at x10 and x20.

Ports

NameDomainDirection
usignalin
ysignalout

Parameters

NameUnitDefaultDescription
a111/s-1A row 1, column 1
a121/s0A row 1, column 2
a211/s0A row 2, column 1
a221/s-1A row 2, column 2
b11/s1B row 1
b21/s0B row 2
c111C column 1
c210C column 2
d10Feedthrough D
x1010x1 at the start
x2010x2 at the start

Variables

NameUnitStartDescription
x11x10First state
x21x20Second state

Equations

der(x1) = a11 * x1 + a12 * x2 + b1 * u
der(x2) = a21 * x1 + a22 * x2 + b2 * u
y = c1 * x1 + c2 * x2 + d * u