📄 z2s.m
字号:
%MATLAB function z2s.m converts a network's impedance
%matrix, Z, into the appertaining generalized S matrix.
%The function is called up by S = z2s(Z0, Z). It needs
%as its input arguments not only the elements of a
%Z 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[S] = z2s(Z0, Z)
D0 = inv(sqrtm(Z0));
S = D0 * (Z-conj(Z0))*inv(Z + Z0)*sqrtm(Z0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -