⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 casfiltr.m

📁 the file contain many matlab signal source code and many example .
💻 M
字号:
function y=casfiltr(b0,B,A,x);
% CASCADE form realization of IIR and FIR filters
% -------------------------------
% y=casfiltr(b0,A,B,x)
% y=output sequence
% b0=gain coefficient of CASCADE form 
% B=K by 3 matrix of real coefficients containing bk's
% A=K by 3 matrix of real coefficients containing ak's
% x=input sequence
% 
[K,L]=size(B);
N=length(x);
w=zeros(K+1,N);
w(1,:)=x;
for i=1:K
    w(i+1,:)=filter(B(i,:),A(i,:),w(i,:));
end 
y=b0*w(K+1,:);

⌨️ 快捷键说明

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