q = unwrap(p)
q = unwrap(p, tol)
q = unwrap(p, tol, dim)
| Parameter | Description |
|---|---|
| p | a real vector or matrix of phase angles in radians. |
| tol | jump tolerance, pi by default. A jump larger than tol is corrected by adding a multiple of 2*pi. |
| dim | dimension along which to operate; by default the first dimension whose size is not 1. |
| Parameter | Description |
|---|---|
| q | the phase angles with jumps of more than tol removed, with the same size and class as p. |
unwrap corrects the radian phase angles in p by adding multiples of 2*pi whenever the jump between consecutive elements is larger than tol (pi by default).
For a matrix, each column is unwrapped independently unless a dimension is given.
q = unwrap([0 3*pi/2 3*pi])
| Version | Description |
|---|---|
| 2.0.0 | initial version |