Engee documentation

y2h

Converts Y-parameters into hybrid h-parameters.

Library

EngeeRF

Syntax

Function call

Arguments

Input arguments

# y_params — two- port Y-parameters

+ 2×2×M array of complex numbers

Details

Two-port Y-parameters specified as an array of complex numbers of the size on on , where represents the number of frequency points of the two-port Y-parameters.

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 Y-parameters to h-parameters

Details

Let’s define a matrix of Y-parameters and convert them to h-parameters.

using EngeeRF

Y11 =  0.0488133074245012 - 0.390764155450191im
Y12 = -0.0488588365420561 + 0.390719345880018im
Y21 = -0.0487261119282660 + 0.390851884427087im
Y22 =  0.0487710062903760 - 0.390800401433241im
y_params = [Y11 Y12; Y21 Y22]

h_params = y2h(y_params)
2×2 Matrix{ComplexF64}:
 0.314763+2.51977im         0.999901+0.000128827im
 -1.00019+0.000247326im  -6.54653e-7+6.67601e-6im