Matlab tips
Filtering of a signal
first
define the filter characteristics
d = fdesign.lowpass('N,Fc,Ap,Ast',10,0.2,0.5,40);
or
H = fdesign.bandstop('Fp1,Fst1,Fst2,Fp2,Ap1,Ast,Ap2',...
1600,2000,2400,2800,1,80,1,8000);
then
design the filter using a specific method
to know the available method type simply
designmethods(d)
designmethods(H)
now you can make matlab disign the filter
hd=design(d,'equiripple');
To filter
filter_out = filter(hd, filter_in)
---------------------------------------------------------------------------------------