Unwraps radian phase by adding multiples of 2π.
UNWRAPPHASE(series, inc)
series |
- |
A series, the time domain data. |
inc |
- |
Optional. A real, the increment that determines a phase jump. Defaults to π. |
A real series or array, the unwrapped phase.
W1: rep(linspace(-pi, pi, 100), 3)
W2: unwrapphase(w1)
W1 contains 300 discontinuous values from -π to π.
W2 produces a continuous series by adding an increment of 2π where the series jumps by π.
W1: cheby1(3, 1000.0, 200.0, 300.0, 3.0, 40.0, 180.0, 320.0)
W2: zfreq(w1, 1024)
W3: unwrap(phase(W2))
W1 contains a Chebyshev I bandpass filter with a passband from 200 to 300 Hz.
W2 computes the complex frequency response.
W3 unwraps the phase of the complex frequency response.
UNWRAPPHASE unwraps a series of radian phase by adding increments of 2π where the series jumps by inc.
UNWRAPPHASE can be abbreviated UNWRAP.
See the DADiSP/Filters Module for generally superior phase unwrapping routines.