comunwrap()

Description:

Shift phase angles.

Syntax:

comunwrap(A,tol,dim)

Note:

The external library function (See External Library Guide) unwraps radian phase angles of sequence A of complex numbers according to dimension dim. Whenever the jump between consecutive angles is greater than or equal to tol radians, comunwrap shifts the angles by adding multiples of ±2π until the jump is less than tol.

Parameter:

A

A sequence of complex numbers

tol

The jump threshold value

dim

Dimension; unwrap by column when its value is 1 and by row when its value is 2

Return value:

Sequence

Example:

 

A

 

1

=[[0,7.07],[0.19,0.98],[6.67,1.18],[0.59,1.37],[0.78,1.56]]

 

2

=comunwrap(A1,3.14,1)

Unwrap A1 by column, with a jump threshold value of 3.14.

3

=comunwrap(A2,3.14,2)

Expand A2 by row, with a jump threshold value of 3.14.

4

=comunwrap(A1,1.2222,2)

Expand A1 by row, with a jump threshold value of 1.2222.