Thiis patch adds a continious phase function for plotting the phase output. The discontinuities as the phase jumps from +180 (+pi)to -180(-pi) or vice verse are eliminated byselecting the closest point of from (x-pi, x, x+pi) to x-1and keeping track of the number of periods added or subtracted so far.
continious phase function for plotting
Stuart,
thanks for your input. I have seen the need for a continuous function for some optimization work.
It may take some time however to implement your patch.
Regards
Holger
Stuart,
code submitted to CVS.
Holger