unwrap

Purpose

Correct phase angles.

Synopsis

Q = unwrap(P,cutoff)
Q = unwrap(P)

Description

Q = unwrap(P,cutoff) corrects the phase angles in vector or matrix P by adding multiples of ±2¶, when absolute jumps are greater than cutoff, to smooth the transitions across branch cuts. When P is a matrix, the phase angles are corrected down each column. The phase must be in radians.

Q = unwrap(P) uses the default value for cutoff, pi .

Limitations

unwrap does the best it can to detect branch cut crossings, but it can be fooled by sparse, rapidly changing phase values.

See Also

abs, angle

(c) Copyright 1994 by The MathWorks, Inc.