Reputation: 1592
I'm have the following code to process a signal from an audio
[wave,fs]=wavread('my-audio.wav');
t=0:1/fs:(length(wave)-1)/fs;
figure(1);plot(t,wave);
b = [0 1 1.1];
a = [1 0 -0.1];
FIR = filter(b,a,wave);
figure(2);plot(t,FIR);
And I'm wondering how, if it's possible, can I do exactly the same with the conv
function and what would be the difference.
So far, I guessed that I have to turn the audio from stereo to mono. Am I right?
Thanks!
Upvotes: 0
Views: 565
Reputation: 781
You can use conv
to perform FIR filtering, but not IIR filtering. In this case, you have non-trivial denominator coefficients, the filter is IIR and so filter
is the way to go.
Upvotes: 3