Engee documentation

h2s

Converts hybrid h-parameters to S-parameters.

Library

EngeeRF

Syntax

Function call

Arguments

Input arguments

# h_params — dual-port hybrid h-parameters

+ 2×2×M array of complex numbers

Details

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

# z0 is the calculated impedance

+ 50 (by default) | positive real scalar | positive real vector

Details

The calculated impedance of the two-port S-parameters, specified as a positive real scalar or vector in Ohms.

The argument z0 can be a positive real scalar or a vector. If z0 — vector, then its size should be equal to the number of data points of the network parameters.

Output arguments

# s_params — dual-port S-parameters

+ 2×2×M array of complex numbers

Details

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

Examples

Converting h-parameters to S-parameters

Details

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

using EngeeRF

h_11 = 0.314441556185771 + 2.51960941000598im
h_12 = 0.999823389146385 - 0.000246785162909241im
h_21 = -1.000115600382660 - 0.000129304649930592im
h_22 = -6.55389515512306e-007 + 6.67541048071651e-006im

h_params = [h_11 h_12; h_21 h_22]

s_params=h2s(h_params)
2×2 Matrix{ComplexF64}:
 0.00373778+0.0247995im    0.996104-0.0253743im
   0.996405-0.0250069im  0.00381846+0.0249142im