s2h
Converts S-parameters to hybrid h-parameters.
| Library |
|
Arguments
Input arguments
# s_params — dual-port S-parameters
+
2×2×M array of complex numbers
Details
Two-port S-parameters specified as an array of complex numbers of the size on on , where represents the number of frequency points of two-port S-parameters.
# Z0 is the calculated impedance, ohms
+
50 | positive real scalar
Details
The calculated impedance of the two-port S-parameters, specified as a positive real scalar in Ohms.
Output arguments
# h_params — dual-port hybrid h-parameters
+
2×2×M array of complex numbers
Details
Two-port hybrid h-parameters returned as an array of complex numbers of size on on , where represents the number of frequency points of two-port inverse hybrid h-parameters.
Examples
Converting S-parameters to h-parameters
Details
Let’s define a matrix of S-parameters and convert them to h-parameters.
using EngeeRF
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
h_params=s2h(s_params,z0)
2×2 Matrix{ComplexF64}:
15.3381+1.4019im 0.0260355+0.0410944im
-0.958501-3.49016im 0.0106076+0.00538047im