phasemag(1)

NAME
phasemag - phase magnitude computation

CALLING SEQUENCE
[phi,db]=phasemag(z [,mod])

PARAMETERS

z   : matrix or row vector of complex numbers.

mod : character string

    mod='c'
        : representation between -infinity and +360

    mod='m'
        : representation between -360 and 0 (default)

phi : phases (in degree) of z (element-by-element)

db  : magnitude (en db)

DESCRIPTION
phasemag computes the phases and magnitudes of the entries of a complex matrix

EXAMPLE
  s=poly(0,'s');
  h=syslin('c',1/((s+5)*(s+10)*(100+6*s+s*s)*(s+.3)));
  [frq,rf]=repfreq(h,0.1,20,0.005);
  xbasc(0);
  plot2d(frq',phasemag(rf,'c')');
  xbasc(1);
  plot2d(frq',phasemag(rf,'m')');

SEE ALSO
repfreq, gainplot