[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Signal: zp2sos and cplxpair problem
From: |
steven_ew |
Subject: |
Signal: zp2sos and cplxpair problem |
Date: |
Mon, 30 Apr 2012 04:24:47 -0700 (PDT) |
Hi
I am new to Octave but quite experience in Matlab. I am trying to get a
script to run that creates and applies a Butterworth filter (it is a script
I have used lots in Matlab).
The key lines are :
bandHz = [100 500];
sampleFreq = 1001;
nyquistFreq = 0.5 * sampleFreq;
w = bandHz / nyquistFreq;
[z,p,k] = butter(2, w);
[sos,g] = zp2sos(z,p,k);
However, when Octave gets to zp2sos it gives this error:
error: cplxpair: could not pair all complex numbers
error: called from:
error: /usr/local/share/octave/3.6.1/m/general/cplxpair.m at line 126,
column 9
error: /home/steven/octave/signal-1.1.2/cplxreal.m at line 53, column 7
error: /home/steven/octave/signal-1.1.2/zp2sos.m at line 70, column 10
I wondered if someone could help me go about fixing this problem or give
some hint about where to start?
Thank you in advance for your help
Steven
--
View this message in context:
http://octave.1599824.n4.nabble.com/Signal-zp2sos-and-cplxpair-problem-tp4597918.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Signal: zp2sos and cplxpair problem,
steven_ew <=