Signal Processing Toolbox | ![]() ![]() |
Constrained least square FIR filter design for
multiband filters.
Syntax
b = fircls(n,f,amp,up,lo) fircls(n,f,amp,up,lo,'design_flag')
Description
b = fircls(n,f,amp,up,lo)generates a length n+1 linear phase FIR filter b. The frequency-magnitude characteristics of this filter match those given by vectors f and amp:
fircls(n,f,amp,up,lo,'design_flag')enables you to monitor the filter design, where 'design_flag' can be:
Examples
Design an order 50 bandpass filter.
n = 50; f = [0 0.4 0.8 1]; amp = [0 1 0]; up = [0.02 1.02 0.01]; lo = [-0.02 0.98 -0.01]; b = fircls(n,f,amp,up,lo,'plots'); % Plot magnitude response
Algorithm
The algorithm is a multiple exchange algorithm
that uses Lagrange multipliers and Kuhn-Tucker conditions on each iteration.
See Also
fircls1 | Constrained least square filter design for lowpass and highpass linear phase FIR filters. |
firls | Least square linear-phase FIR filter design. |
remez | Parks-McClellan optimal FIR filter design. |
References
[1] Selesnick, I.W., M. Lang, and C.S. Burrus, "Constrained Least Square Design of FIR Filters without Specified Transition Bands," Proceedings of the IEEE Int. Conf. Acoust., Speech, Signal Processing, Vol. 2 (May 1995), pp. 1260-1263.
[2] Selesnick, I.W., M. Lang, and C.S. Burrus. "Constrained Least Square Design of FIR Filters without Specified Transition Bands." IEEE Transactions on Signal Processing, Vol. 44, No. 8 (August 1996).
![]() |
fir2 | fircls1 | ![]() |