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

📄 fig5_21.m

📁 射频电路设计:理论与应用:theory and applications 全部源代码
💻 M
字号:
%
%   This routine computes the attenuation response of
%   the Chebyshev lowpass filter. Computations are 
%   performed for filters of order 1 through 10.
% 
%   Copyright (c) 1999 by P.Bretchko and R.Ludwig
%   "RF Circuit Design: Theory and Practice"
%

close all; % close all opened graphs
clear all; % clear all variables
figure;    % open new graph

w=1:0.01:11; % normalized frequency
N=10;        % define the maximum order for the filter
ripple=3;    % define ripple size in the pass band

a=sqrt(10^(ripple/10)-1);

colormap(lines);
color_map=colormap;
colormap('default');

for n=1:N
   LF=1+a^2*(cosh(n*acosh(w))).^2;
   semilogx(w-1,10*log10(LF),'color',color_map(n,:));
   hold on;
end;
title('Response of Chebyshev lowpass filter with 3dB ripple');
xlabel('Normalized frequency {\Omega}-1');
ylabel('Attenuation, dB');
axis([0.01 10 0 80]);
text(3,10,'N=1');
text(0.15,60,'N=10');
%print -deps 'fig5_21.eps' % if uncommented -> saves a copy of plot in EPS format

⌨️ 快捷键说明

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