help-octave
[Top][All Lists]
Advanced

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

Re: Trying to test analog filter


From: Doug Stewart
Subject: Re: Trying to test analog filter
Date: Thu, 31 Mar 2005 07:12:37 -0500
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I added the Laplace filter to Butter and Cheby1 and 2 etc. when you type help cheby1 if it doesn't have it there then get a newer ver. at:
http://dougs (dot) homeip (dot) net/octave/Doug%27s_Octave_Files.html

Please let me know if you have any problems.

Doug Stewart



address@hidden wrote:

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
-------------------------------------------------------------




-------------------------------------------------------------
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]