control.matlab.dcgain

control.matlab.dcgain(*args)

Compute the gain of the system in steady state.

The function takes either 1, 2, 3, or 4 parameters:

Parameters:
  • B, C, D (A,) – A linear system in state space form.
  • P, k (Z,) – A linear system in zero, pole, gain form.
  • den (num,) – A linear system in transfer function form.
  • sys (LTI (StateSpace or TransferFunction)) – A linear system object.
Returns:

gain – The gain of each output versus each input: y = gain \cdot u

Return type:

ndarray

Notes

This function is only useful for systems with invertible system matrix A.

All systems are first converted to state space form. The function then computes:

gain = - C \cdot A^{-1} \cdot B + D