Hi Kathik, You have left out an important bit of information and that is the sampling frequency. I'll assume that is 44.1 kHz in this example.
In what follows, Hd1 is an FIR equiripple design and H2 is an IIR Butterworth design. I'll use 50 dB of attenuation.
d = fdesign.lowpass('Fp,Fst,Ap,Ast',6000,6200,0.5,50,44100);
Hd1 = design(d);
Hd2 = design(d,'butter');
To apply the filter to data, use
output = filter(Hd1,input);
Best Answer