firfilter.m

来自「the implement of the encoder and the dec」· M 代码 · 共 21 行

M
21
字号
function [ y, z ] = FIRfilter( coef, z, x, norder )

global szsubf olpc;

if nargin==4
    order=norder;
else
    order=olpc;
end
    
b=coef(2:order+1);                           % Cut off 1 in the coefficients

for t=1:szsubf
    y(t) = sum(z(1:order).*b(order:-1:1))+x(t);
    z(1:order)=[z(2:order),x(t)];
end
    
    
    
    

⌨️ 快捷键说明

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