Skip to Main Content Skip to Search
Product Documentation

dcgain - Low-frequency (DC) gain of LTI system

Syntax

k = dcgain(sys)

Description

k = dcgain(sys) computes the DC gain k of the LTI model sys.

Continuous Time

The continuous-time DC gain is the transfer function value at the frequency s = 0. For state-space models with matrices (ABCD), this value is

K = D – CA–1B

Discrete Time

The discrete-time DC gain is the transfer function value at z = 1. For state-space models with matrices (ABCD), this value is

K = D + C (I – A)–1B

Tips

The DC gain is infinite for systems with integrators.

Examples

Example 1

To compute the DC gain of the MIMO transfer function

type

H = [1 tf([1 -1],[1 1 3]) ; tf(1,[1 1]) tf([1 2],[1 -3])];
dcgain(H)

to get the result:

ans =
    1.0000   -0.3333
    1.0000   -0.6667

Example 2

To compute the DC gain of an identified process model, type;

load iddata1
sys = idproc('p1d');
syse = procest(z1, sys)

dcgain(syse)

The DC gain is stored same as syse.Kp.

See Also

evalfr | norm

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS