function b = makeLowPass( Order, f_cutoff, f_transition, fs)
% makeLowPass - design an FIR low pass filter
%
% a simple wrapper around firpm to compute the coefficients of a lowpass
% FIR filter with cut-off frequency f_cutoff and a transition region of
% width f_transition. Order is the number of FIR coeeficients.
%
% Syntax: 
%
% b = makeLowPass( Order, f_cutoff, f_transition, fs)

% Author: BPP
f1 = (f_cutoff-f_transition/2)/fs;
f2 = (f_cutoff+f_transition/2)/fs;

b = firpm( Order, ...
    2*[ 0  f1 f2 0.5], ...
    [1 1 0 0] );

