smatch.m

来自「用matlab编写的电磁学方面的函数和图像」· M 代码 · 共 30 行

M
30
字号
% smatch.m - simultaneous conjugate match of a two-port
%
% Usage: [gG,gL] = smatch(S)
%
% S = 2x2 scattering matrix of two-port (must be unconditionally stable)
%
% gG,gL = generator and load reflection coefficients 
% 
% notes: ZG and ZL can be computed from ZG = g2z(gG,Z0), ZL = g2z(gL,Z0)

% S. J. Orfanidis - 2000 - www.ece.rutgers.edu/~orfanidi/ewa

function [gG,gL] = smatch(S)

if nargin==0, help smatch; return; end

D = det(S);

[K,mu,D,B1,B2,C1,C2] = sparam(S);

if K < 1,
    fprintf('\nsimultaneous conjugate match does not exist\n\n');
    return;
end

gG = (B1 - sign(B1) * sqrt(B1^2 - 4*abs(C1)^2)) / (2*C1);
gL = (B2 - sign(B2) * sqrt(B2^2 - 4*abs(C2)^2)) / (2*C2);


⌨️ 快捷键说明

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