phasemag — phase and magnitude computation
[phi,db]=phasemag(z [,mod])
matrix or row vector of complex numbers.
character string
"continuous" representation between -infinity and +360 degrees (default)
representation between -360 and 0 degrees
phases (in degree) of z
.
magnitude (in Db)
phasemag
computes the phases and magnitudes of the entries
of a complex matrix. For mod='c'
phasemag
computes phi(:,i+1)
to minimize the distance with
phi(:,i)
, i.e. it tries to obtain a "continuous
representation" of the phase.
To obtain the phase between -%pi and %pi use
phi=atan(imag(z),real(z))