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

📄 txline.m

📁 MATLAB无线网络的各种例子,相当全面
💻 M
字号:
% TXLINE   Provides VSWR, reflection coefficient and input impedance
%          for a terminated transmission line.
%
%	       [VSWR, RHO, ZIN] = TXLINE(ZL,ZO,ZD,L,BW)
%
%          ZL, ZO  and  ZD  are the load, characteristic and desired
%          impedances, respectively. L is the line length whereas BW 
%          is the bandwidth. Values of L must be normalized in terms
%          of wavelength and BW should be given in percentage.            				

% RFWave - The Radio Frequency Wave Toolbox
% Versions: 1.0 22-May-1997, 1.1 18-Aug-1999,
%           1.2 16-Jul-2002
% Developed by A. C. de C. Lima 
% E-mail: acdcl@ufba.br
% Electrical Engineering Department
% Federal University of Bahia (UFBA)
% Brazil

function [vswr, rho, zin] = txline(zl,zo,zd,l,bw)

if bw == 0
   fn=1;
else
   bw=bw/100;
   bw2=bw/2;
   fn=1-bw2:bw/100:1+bw2;
end;
beta=2*pi*fn;
tgbl=tan(beta*l);
zin=zo*(zl+j*zo.*tgbl)./(zo+j*zl.*tgbl);
rho=(zin-zd)./(zin+conj(zd))*conj(zd)/zd;
mrho=abs(rho);
vswr=(1+mrho)./(1-mrho);

⌨️ 快捷键说明

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