octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40155] Octave does not produce same results a


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #40155] Octave does not produce same results as Matlab for iir scripts
Date: Tue, 01 Oct 2013 17:28:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36

Follow-up Comment #3, bug #40155 (project octave):

would someone with matlab try this code:

N=7;
Wn=.4;
res='low';
 [Z,P,K]=butter(N,Wn,res);
 sos=zp2sos(Z,P,K)                    % Convert ZP to SOS 

in Octave with this code I get:
N=7;
Wn=.4;
res='low';
 [Z,P,K]=butter(N,Wn,res);
 sos=zp2sos(Z',P',K)                    % Convert ZP to SOS 


sos =

   1.00000   2.00000   1.00000   1.00000  -0.33284   0.07708
   1.00000   2.00000   1.00000   1.00000  -0.38797   0.25551
   1.00000   2.00000   1.00000   1.00000  -0.51008   0.65067
   1.00000   1.00000  -0.00000   1.00000  -0.15838   0.00000


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40155>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]