📄 example1.m
字号:
function dr = auxfilt(x0,y0,dx,ds,F)
% auxfilt.m Digital filter realization
% generated from the drawing window of the toolbox
% "Drawing Digital Filter Realizations v1.0 beta"
% by Miroslav D. Lutovac and Dejan V. Tosic (c) 1999
%
% Note: Edit this file by an ASCII text editor and
% save the new file under a different name.
%
% See also: Miroslav D. Lutovac, Dejan V. Tosic, Brian L. Evans
% "Advanced Filter Design for Signal Processing
% Using MATLAB and Mathematica"
% http://galeb.etf.bg.ac.yu/~lutovac
% http://telekom.etf.bg.ac.yu/~tosic
%
% Contact: Please, send your comments at
% lutovac@galeb.etf.bg.ac.yu
% tosic@telekom.etf.bg.ac.yu
%
% Your suggestions are appreciated!
%
% call auxfilt(0,0,4,5,10)
% creation date: 19-Sep-99 time: 22:15
Nx = 7;
Ny = 5;
whitebg(figure(gcf),[1 1 1]);
dc = 'k';
x = zeros(1,4*Nx);
y = zeros(1,4*Ny);
for indx = 1:4*Nx
x(indx) = x0 + dx*indx/4;
end
for indy = 1:4*Ny
y(indy) = y0 + dx*indy/4;
end
drawin(x(3), y(9), 'IN', 2, ds, F, dc);
drawadd(x(3),y(9),1,0,3,2,'',1,ds/3,F,dc);
drawmult(x(4), y(8), x(8), 'a', ' ' ,0, ds/3, F, dc);
drawadd(x(8),y(8),0,3,1,2,'',3,ds/3,F,dc);
drawlvh(x(5), y(9), x(9), y(9), 0, dc);
drawnode(x(9), y(9), ' ', 1, 1, F, dc);
drawadd(x(3),y(7),1,3,2,0,'',3,ds/3,F,dc);
drawlvh(x(9), y(7), x(5), y(7), 0, dc);
drawnode(x(4), y(8), ' ', 1, 1, F, dc);
drawdel(x(9), y(7), x(12), ' ', '-1' ,14, ds/2, F, dc);
drawline(x(3), y(7), x(3), y(5), dc);
drawout(x(3), y(5), 'OUT', 0, ds, F, dc);
drawline(x(9), y(9), x(12), y(9), dc);
drawtext(x(5), y(10), 'Basic filter block', F+2, dc);
drawnode(x(9), y(7), ' ', 1, 1, F,dc);
axis('equal')
axis('off')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -