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

📄 drawopam.m

📁 AFD - Advanced Filter Design using MATLABMiroslav D. Lutovac, Dejan V. Tosicversion 1.00 released 15
💻 M
字号:
function dr = drawopam(c,d,f,n,t,p,s,F,dc)

% drawopam.m  Draw OpAmp
% 1:54  22/2/99
%
%            Album of Analog Filter Realizations
%
%   Authors: Dejan V. Tosic, Miroslav D. Lutovac, 1999.02.21
%                 tosic@telekom.etf.bg.ac.yu
%                 lutovac@galeb.etf.bg.ac.yu
%
%   Copyright (c) 1999 by Tosic & Lutovac
%   $Revision: 1.0 $  $Date: 1999/02/21 02:17:42 $
%
%   References:
%        Miroslav D. Lutovac, Dejan V. Tosic, Brian L. Evans
%           Advanced Filter Design for Signal Processing
%                   Using MATLAB and Mathematica
%

a=(f+c)/2-0.4*s;
b=d;
g=c;
h=(f+d)/2-0.4*s;

if p == 0
 x1 = a + s*[0.6, 0.2, 0.2, 0.6, (f-a)/s];
 y1 = b + s*[  0, 0.3,-0.3,   0, 0];
 x2 = a + s*[(c-a)/s, 0.2];  y2 = b + s*[  0.2, 0.2];
 x3 = a + s*[(c-a)/s, 0.2];  y3 = b + s*[ -0.2,-0.2];
 x4 = a + s*[ 0.23, 0.33];   y4 = b + s*[-0.15,-0.15];
 x5 = a + s*[ 0.23, 0.33];   y5 = b + s*[ 0.15, 0.15];
 x6 = a + s*[ 0.28, 0.28];   y6 = b + s*[ 0.20, 0.1];
 line(x1,y1,'Color',dc);  line(x2,y2,'Color',dc);  line(x3,y3,'Color',dc);
 line(x4,y4,'Color',dc);  line(x5,y5,'Color',dc);  line(x6,y6,'Color',dc);
 text(a+s*0.45,b+s*0.2,t,'FontName','Times','FontSize',F,...
   'HorizontalAlignment','left','VerticalAlignment','bottom')
else
 x1 = a + s*[0.6, 0.2, 0.2, 0.6, (f-a)/s];
 y1 = b + s*[  0, 0.3,-0.3,   0, 0];
 x2 = a + s*[(c-a)/s, 0.2];  y2 = b + s*[  0.2, 0.2];
 x3 = a + s*[(c-a)/s, 0.2];  y3 = b + s*[ -0.2,-0.2];
 x4 = a + s*[ 0.23, 0.33];   y4 = b + s*[-0.15,-0.15];
 x5 = a + s*[ 0.23, 0.33];   y5 = b + s*[ 0.15, 0.15];
 x6 = a + s*[ 0.28, 0.28];   y6 = b + s*[-0.20,-0.1];
 line(x1,y1,'Color',dc);  line(x2,y2,'Color',dc);  line(x3,y3,'Color',dc);
 line(x4,y4,'Color',dc);  line(x5,y5,'Color',dc);  line(x6,y6,'Color',dc);
 text(a+s*0.45,b+s*0.2,t,'FontName','Times','FontSize',F,...
   'HorizontalAlignment','left','VerticalAlignment','bottom')
end

⌨️ 快捷键说明

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