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

📄 filters.m

📁 英文书《Digital Signal Processing with Examples in MATLAB》附带的MATLAB实例
💻 M
字号:
function y=filters(b,a,x)
% y=filters(b,a,x)
% 
% Same as Matlab "filter" function except b and a both have
% N rows, representing N filter sections in cascade.
%
% If N=1, the filter has only one section.
% If a=1, the filter is an FIR filter with no feedback weights.
%
% x is assumed to be a vector. If so, y is the filtered version of x.
% If not, see the description of the Matlab "filter" function.
[N,n]=size(b);
[M,m]=size(a);
if(N~=M)
   error('The b and a arrays must have the same # rows.');
end
input=x;
for i=1:N,
   y=filter(b(i,:),a(i,:),input);
   input=y;
end

⌨️ 快捷键说明

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