scipy.signal.

zpk2ss

scipy.signal.zpk2ss(z, p, k)[source]

Zero-pole-gain representation to state-space representation

Parameters:
z, psequence

Zeros and poles.

kfloat

System gain.

Returns:
A, B, C, Dndarray

State space representation of the system, in controller canonical form.