dfreq.m

来自「里面囊括了基于matlab滤波器设计的各种.m文件」· M 代码 · 共 18 行

M
18
字号
 
%f = dfreq(h, omega)
% Computation the frequency response of h in the point
% omega. The result is the same as FREQZ but the method
% is different. See also SFREQ and SFREQ1
%

function f = dfreq(h,omega)

 N = length(h);
 for I = 1:N
   e(I) = exp(-j*(I-1)*omega);
 end
 e = e(:);
 h = h(:)';
 f = h*e;

%END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?