[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question regarding unwrap
From: |
Paul Kienzle |
Subject: |
Re: A question regarding unwrap |
Date: |
Sun, 25 Sep 2005 06:05:37 -0400 |
On Sep 24, 2005, at 9:30 PM, Ron Crummett wrote:
Hi -
I have a recent problem with unwrap; I tried plotting the phase of a
transfer function and it jumped halfway through the plot, from -180 to
180. I tried to unwrap the phase using unwrap and plotted the phase
again, but still had the same jump. Reading the help on unwrap, it
sounds like it will only really work if the phase is positive (it adds
2*pi). For me, I have a negative phase, so I need to subtract 2*pi.
Any idea of what the solution could be? I tried looking at the code
but couldn't make too much sense out of it from my few glances.
Please post a short example that breaks to address@hidden
The shortest one I can come up with works fine:
octave> unwrap([-pi,pi])
ans =
-3.1416 -3.1416
Thanks,
- Paul
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------