Function File: [a, b, c, d] = zp2ss (z, p, k)

Conversion from zero / pole to state space.

Inputs

z
p

Vectors of (possibly) complex poles and zeros of a transfer function. Complex values must come in conjugate pairs (i.e., x+jy in z means that x-jy is also in z).

k

Real scalar (leading coefficient).

Outputs

a
b
c
d

The state space system, in the form:

     .
     x = Ax + Bu
     y = Cx + Du

Package: signal