This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function h = cfirls(N,f,d,w,hreal) | |
% function h = cfirls(N,f,d,w,hreal) | |
% Least-squares FIR filter design with prescribed magnitude and phase | |
% responses and with possibly complex coefficients | |
% | |
% h real or complex-valued impulse response | |
% N desired filter length | |
% f frequency grid | |
% for complex-valued filters ('hreal=0'): -1 <= f < 1 | |
% ( '1' corresponds to Nyquist) or 0 <= f < 2 |