z2s.m
来自「MIMO信号与系统英文书里面配套的matlab程序」· M 代码 · 共 17 行
M
17 行
%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 + =
减小字号Ctrl + -
显示快捷键?