cl2bp Constrained L2 bandpass FIR filter design. Calling Sequence h = cl2bp (m, w1, w2, up, lo, gridsize) h = cl2bp (m, w1, w2, up, lo) Parameters m: degree of cosine polynomial, i.e. the number of output coefficients will be m*2+1 w1 and w2: bandpass filter cutoffs in the range 0 <= w1 < w2 <= pi, where pi is the Nyquist frequency up: vector of 3 upper bounds for [stopband1, passband, stopband2] lo: vector of 3 lower bounds for [stopband1, passband, stopband2] gridsize: search grid size; larger values may improve accuracy, but greatly increase calculation time. Description This is an Octave function. Constrained L2 bandpass FIR filter design. Compared to remez, it offers implicit specification of transition bands, a higher likelihood of convergence, and an error criterion combining features of both L2 and Chebyshev approaches. Examples