Scilab Function

p_margin - phase margin

### Sequence d'appel

  `[phm,fr]=p_margin(h)`
  `phm=p_margin(h)`

### Parametres

- `h` : SISO linear system (`syslin` list).
- `phm` : phase margin (in degree)
- `fr` : corresponding frequency (hz)

### Description

The phase margin is the values of the phase at points where the nyquist plot of `h` crosses the unit circle.

### Exemples

    h=syslin('c',-1+%s,3+2*%s+%s^2)
    [p,fr]=p_margin(h)
    [p,fr]=p_margin(h+0.7)
    nyquist(h+0.7)
    t=(0:0.1:2*%pi)';plot2d(sin(t),cos(t),-3,'000')

### Voir aussi

`chart` `black` `g_margin` `nyquist`

### Auteur

S. S.