The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: 8th order Butterworth not working? :-( :-(
Replies: 1   Last Post: Jun 23, 2011 1:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Peter Mairhofer

Posts: 41
Registered: 8/18/10
8th order Butterworth not working? :-( :-(
Posted: Jun 23, 2011 12:10 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am trying to simulate a system which uses an 8th order low pass. But
instead of a flat band, I only get noise. This is the simple code:

fnyq = 10e9;
L = 195;
N = 100000;
[b5,a5] = butter(5, 1/L);
[b7,a7] = butter(7, 1/L);
[b8,a8] = butter(8, 1/L);
[h5,f] = freqz(b5, a5, N);
[h7,f] = freqz(b7, a7, N);
[h8,f] = freqz(b8, a8, N);
plot(linspace(0, fnyq, N), 20*log10(abs([h5 , h7 , h8])));
xlim([0, fnyq/L * 3]);
legend('5 order', '7 order', '8 order');

And this is the result:

5th order works fine, 7th order has some noise and 8th order (which I
would need) is completely useless!

Unfortunately I need to simulate an 8th order Butterworth (and not Cauer
etc.) so I have no chance :(

Any hints?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.