答案:function hd=ideal_bp1(Wcl,Wch,N)
%compute the ideal bandpass fiter unit pulse respondence hd(n)
%wcl: low cutoff frequency
%wch: high cutoff frequency
%N: window length
%hd: unit pulse respondence
alpha= (N-1)/2;
n=0:1:N-1;
m=n-alpha+eps;
hd=[sin(Wch*m)-sin(Wcl*m)]./(pi*m);
上一个:请问如何在Matlab中画出z=exp(x.^2+y.^2)的图像?请给出完整代码(M文件代码)
下一个:Matlab求解一简单方程,请把m文件代码贴上,多谢啦!