sfreq.m

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

M
12
字号
 %f = sfreq(h,omega)
%Computation of the frequency response of filter h
%at the point omega by using the simple method
%but the order of h must be odd
%See also SFREQ1

function f=sfreq(h,omega)
N = size(h,2);
for I = 1:N/2
 c(I) = cos(((I-1)+0.5)*omega);
end
f = abs(2*h(N/2+1:N)*c');

⌨️ 快捷键说明

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