powered by
unwrap(a, tol = pi, dim = 1)
phase = c(linspace(0,2*pi), linspace(0, 2*pi)) plot(phase, type = "l", ylim = c(0, 4*pi)) lines(unwrap(phase), col = "blue")
Run the code above in your browser using DataLab