locchamp
Member level 2
matlab butter
I am trying to design a low pass filter using butter filter in matlab I am confussed how to od this. If my carrier Fc is 20000,( but can be changed if needed) and Fs is 44100 (MP3 file) what do I put in the matlab function below? Please help me I can not get htis please??
I need to filter: outfm = Ac * cos(wc.*t + 2 * pi * kf * cumsum(snd));
Fc=20000
Fs=44100
[N, Wn] = BUTTORD(Wp, Ws, Rp, Rs)
loses no more than Rp dB in
the passband and has at least Rs dB of attenuation in the stopband.
Wp and Ws are the passband and stopband edge frequencies, normalized
from 0 to 1 (where 1 corresponds to pi radians/sample).
I am trying to design a low pass filter using butter filter in matlab I am confussed how to od this. If my carrier Fc is 20000,( but can be changed if needed) and Fs is 44100 (MP3 file) what do I put in the matlab function below? Please help me I can not get htis please??
I need to filter: outfm = Ac * cos(wc.*t + 2 * pi * kf * cumsum(snd));
Fc=20000
Fs=44100
[N, Wn] = BUTTORD(Wp, Ws, Rp, Rs)
loses no more than Rp dB in
the passband and has at least Rs dB of attenuation in the stopband.
Wp and Ws are the passband and stopband edge frequencies, normalized
from 0 to 1 (where 1 corresponds to pi radians/sample).