s2abcd
Converts S-parameters to ABCD-parameters.
| Library |
|
Syntax
Function call
-
abcd_params = s2abcd(s_params, z0)— converts scattering parameterss_paramsin ABCD, the parameters areabcd_params.
Arguments
Input arguments
# s_params — 2N-port S-parameters
+
2N×2N×M array of complex numbers
Details
2N-port S-parameters specified as an array of complex numbers of the size on on , where represents the number of frequency points of 2N-port S-parameters.
# 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
# abcd_params — 2N-port ABCD-parameters
+
2N×2N×M array of complex numbers
Details
2N-port ABCD parameters returned as an array of complex numbers of the size on on , where represents the number of frequency points of 2N-port ABCDparameters.
The output matrices of the ABCDparameters have different submatrices , , and :
Examples
Converting S-parameters to ABCD-parameters
Details
Let’s define a matrix of S-parameters and convert them to ABCD-parameters.
import EngeeRF: s2abcd
s_11 = 0.61 * exp(im * 165/180 * π)
s_21 = 3.72 * exp(im * 59/180 * π)
s_12 = 0.05 * exp(im * 42/180 * π)
s_22 = 0.45 * exp(im * (-48/180) * π)
s_params = [s_11 s_12; s_21 s_22]
z0 = 50
abcd_params = s2abcd(s_params,z0)
2×2 Matrix{ComplexF64}:
0.0633372+0.00688287im 1.49577-3.9839im
0.00220963-0.00243244im 0.0731682-0.266425im