const_swr_circle.m

来自「射频电路设计:理论与应用:theory and applications 全部源」· M 代码 · 共 32 行

M
32
字号
function const_SWR_circle(Z,linespec)
%
%   This function plots a constant SWR circle in the Smith Chart
%
%   It is assume that global variable Z0 has 
%   already been set (see Set_Z0 function)
%
%   usage: const_SWR_circle(Z,linespec)
%                           |  |
%                           |  +------- optional parameter specifying line type
%                           |
%                           +---------- impedance value (not normalized)
%
%   Copyright (c) 1999 by P.Bretchko and R.Ludwig
%   "RF Circuit Design: Theory and Practice"
%
global Z0

hold on;
if nargin>1
   color=linespec;
else
   color='k:';
end;

rd=abs((Z-Z0)/(Z+Z0));    % radius of the circle

a=(0:360)/180*pi;

plot(rd*cos(a),rd*sin(a),color)

⌨️ 快捷键说明

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