powered by
Unwrap radian phases by adding multiples of 2*pi as appropriate to remove jumps.
unwrap(a, tol = pi, dim = 1)
vector of phase angles in radians.
tolerance for removing phase jumps.
dimension with which to apply the phase unwrapping.
A vector with the unwrapped phase angles.
Octave Forge http://octave.sf.net
# NOT RUN { phase <- c(seq(0, 2*pi, length=500), seq(0, 2*pi, length=500)) plot(phase, type = "l", ylim = c(0, 4*pi)) lines(unwrap(phase), col = "blue") # }
Run the code above in your browser using DataLab