abcd2s
Converts ABCD-parameters to S-parameters.
| Library |
|
Syntax
Function call
-
s_params = abcd2s(abcd_params, z0)— converts ABCDparametersabcd_paramsin scattering parameterss_paramswith the usage of the calculated impedance valuez0, by defaultz0 = 50Om.
Arguments
Input arguments
# abcd_params — N-port ABCDparameters
+
array of complex numbers
Details
N-port ABCDparameters specified as an array of complex numbers of size on on , where represents the number of frequency points of 2N-port ABCDparameters.
The function assumes that the matrices of ABCD-parameters have different submatrices , , and :
# z0 is the calculated impedance
+
50 (by default) | positive real scalar | positive real vector
Details
The calculated impedance in ohms, given by one of the following methods:
-
A positive scalar, if it is necessary to set the calculated impedance for all network ports.
-
A positive vector of length if it is necessary to set a different design impedance for each port in the network from ports.
-
A positive vector of length if it is necessary to specify a different design impedance for each of the data frequencies.
If the reference resistance is a vector, and the number of ports equal to the number of frequencies , then the object sparameters will assign each element of the vector to each port of the network. To set the resistances for each frequency in this case, specify z0 as a three-dimensional vector of length on on .
Output arguments
# s_params — 2N-port S-parameters
+
array of complex numbers
Details
2N-port S-parameters returned as an array of complex numbers of the size on on , where represents the number of frequency points of 2N-port S-parameters.
Examples
Converting ABCD-parameters to S-parameters
Details
We define the matrix of ABCD-parameters and convert them to S-parameters.
using EngeeRF
A = 0.999884396265344 + 0.000129274757618717im;
B = 0.314079483671772 + 2.51935878310427im;
C = -6.56176712108866e-007 + 6.67455405306704e-006im;
D = 0.999806365547959 + 0.000247230611054075im;
abcd_params = [A B; C D]
s_params=abcd2s(abcd_params)
2×2 Matrix{ComplexF64}:
0.00381839+0.0247966im 0.996111-0.0249991im
0.996392-0.0253812im 0.00374364+0.0249161im