📄 z2g.m
字号:
% z2g.m - impedance to reflection coefficient transformation
%
% Usage: Gamma = z2g(Z,Z0)
% Gamma = z2g(Z) (equivalent to Z0=1, i.e., normalized impedances)
%
% Z = vector of impedances
% Z0 = line impedance
%
% Gamma = vector of reflection coefficients
% S. J. Orfanidis - 1999 - www.ece.rutgers.edu/~orfanidi/ewa
function Gamma = z2g(Z,Z0)
if nargin==0, help z2g; return; end
if nargin==1, Z0=1; end
Gamma = ones(size(Z)); % Gamma=1 when Z=Inf
i = find(Z ~= Inf); % Gamma for Z not equal to Inf
Gamma(i) = (Z(i)-Z0)./(Z(i)+Z0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -