s2z.m
来自「国外教材MIMOSignalsAndSystems附带的程序」· M 代码 · 共 19 行
M
19 行
%MATLAB function s2z.m converts a network's generalized
%scattering matrix, S, into the appertaining impedance
%matrix, Z.
%The function is called up by Z = s2z(Z0, S). It needs
%as its input arguments not only the elements of an
%S matrix, but also those of a normalizing reference
%impedance matrix, Z0.
%Z0 is a diagonal matrix whose elements are either
%real-valued (e.g., all diagonal elements
%are Z0 = 50 ohms) or complex-valued, i.e., with
%a capacitive or inductive reactance term.
function[Z] = s2z(Z0, S)
D0= inv(sqrtm(Z0));
U = diag(ones(length(Z0),1));
Z = sqrtm(Z0)*inv(U-S)*(conj(Z0)+(S*Z0))*D0;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?