MATLAB Function Reference    
unwrap

Correct phase angles

Syntax

Description

Q = unwrap(P) corrects the radian phase angles in array P by adding multiples of ±2 when absolute jumps between consecutive array elements are greater than radians. If P is a matrix, unwrap operates columnwise. If P is a multidimensional array, unwrap operates on the first nonsingleton dimension.

Q = unwrap(P,tol) uses a jump tolerance tol instead of the default value, .

Q = unwrap(P,[],dim) unwraps along dim using the default tolerance.

Q = unwrap(P,tol,dim) uses a jump tolerance of tol.

Examples

Array P features smoothly increasing phase angles except for discontinuities at elements (3,1) and (1,2).

The function Q = unwrap(P) eliminates these discontinuities.

Limitations

The unwrap function detects branch cut crossings, but it can be fooled by sparse, rapidly changing phase values.

See Also

abs, angle


 unix upper