Specifications

Table Of Contents
margin
16-138
Example You can compute the gain and phase margins of the open-loop discrete-time
transfer function. Type
hd = tf([0.04798 0.0464],[1 -1.81 0.9048],0.1)
MATLAB responds with
Transfer function:
0.04798 z + 0.0464
---------------------
z^2 - 1.81 z + 0.9048
Sampling time: 0.1
Type
[Gm,Pm,Wcg,Wcp] = margin(hd);
[Gm,Pm,Wcg,Wcp]
and MATLAB returns
ans =
2.0517 13.5711 5.4374 4.3544
You can also display these margins graphically.