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

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

[Octave-bug-tracker] [bug #53855] [octave forge] (signal) butter band pa


From: Renato
Subject: [Octave-bug-tracker] [bug #53855] [octave forge] (signal) butter band pass filter with higher order has round-off errors
Date: Tue, 8 May 2018 14:59:28 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Follow-up Comment #5, bug #53855 (project octave):

The MatLab documentation is not very well intuitive :-(

The documentation also says to use "hfvt", but it´s not implemented in
Octave.

How to use ZPK Design instead a TF Design of this code below? :-)

++
n = 5;
hpf = 50;
lpf = 10*hpf;
sampling_rate = 44100;

typenoise = noise(60*sampling_rate, 1, 'pink');
[b,a] = butter(n, [hpf/(sampling_rate/2), lpf/(sampling_rate/2)]);
filtered = filter(b, a, typenoise);

freqz (b, a, 4096, sampling_rate)
ax = findall (gcf, 'type', 'axes');
set (ax, 'xlim', [hpf/4 lpf*4]);
set (ax, 'xscale', 'log');
subplot (2, 1, 1);
set (gca, 'ylim', [-35 3]);
--

Thank you,
Renato

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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