ex2_6.m

来自「射频电路设计-理论与应用(光盘)。射频方面的东东」· M 代码 · 共 31 行

M
31
字号
%
%   This file computes the input impedance of the
%   short-circuit line as described in Example 2.6
% 
%   Copyright (c) 1999 by P.Bretchko and R.Ludwig
%   "RF Circuit Design: Theory and Practice"
%

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

% define distributed line parameters
L=209.410e-9;  % line inductance in H/m
C=119.510e-12; % line capacitance in F/m

vp=1/sqrt(L*C); % phase velocity
Z0=sqrt(L/C);   % characteristic line impedance

d=0.1;          % line length
N=5000;         % number of sampling points

f=1e9+3e9*(0:N)/N;  % set frequency range
Z=tan(2*pi*f*d/vp); % short circuit impedance

plot(f/1e9,abs(Z0*Z));
title('Input impedance of a short-circuit transmission line');
xlabel('Frequency {\itf}, GHz');
ylabel('Input impedance |Z|, {\Omega}');
axis([1 4 0 500]);
% print -deps 'fig2_28.eps' % if uncommented -> saves a copy of plot in EPS format

⌨️ 快捷键说明

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