help-octave
[Top][All Lists]
Advanced

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

Trying to test analog filter


From: adrian440
Subject: Trying to test analog filter
Date: Thu, 31 Mar 2005 11:18:40 +1000 (EST)

Greetings to all,

Just having a spot of bother trying to test out an analog filter. After
generating the filter with the cheby1 command:
[x,y]=cheby1(N,ripple_dB,wc,'s');

I try to use the filter command to test it on an audio file:

input = loadaudio('input','lin',16);
output = filter(x,y,input);
saveaudio('output',output,'lin',16);

The output is garbage, I'm guessing because the filter command works with
digital filters, not those in Laplace domain. My 2nd approach was this:
aafilter = tf(x,y);
aafilter_time = impulse(aafilter);
output = conv(aafilter_time,input);

For this approach the audio output is also garbage. I can't really
understand why though, so if you're reading this and know, I'd be most
grateful for any help you could give.
Adrian.




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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