Engee documentation

z2s

Converts Z-parameters to S-parameters.

Library

EngeeRF

Syntax

Function call

Arguments

Input arguments

# z_params — N-port Z-parameters

+ N×N×M array of complex numbers

Details

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

# Z0 is the calculated impedance, ohms

+ 50 | positive real scalar | positive real vector

Details

The calculated impedance in ohms is set in one of the following ways:

  • Positive real scalar, if you want to set the same calculated impedance for all network ports.

  • A positive real vector of length if you want to set a different design impedance for each port in - port network.

  • A positive real vector of length if you want to set a different design impedance for each of the frequencies in the data.

If the calculated impedance is a vector, and the number of ports equal to the number of data frequencies , , then the function sparameters will assign each element of the vector to each port of the network. To specify the calculated impedance for each frequency in this case, specify Z0 as a three-dimensional vector of size on on .

Output arguments

# s_params — N-port S-parameters

+ N×N×M array of complex numbers

Details

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

Examples

Converting Z-parameters to S-parameters

Details

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

using EngeeRF

Z11 = -14567.2412789287 - 148373.315116592im
Z12 = -14588.1106171651 - 148388.583516562im
Z21 = -14528.0522132692 - 148350.705757767im
Z22 = -14548.5996561832 - 148363.457002006im
z_params = [Z11 Z12; Z21 Z22]

s_params=z2s(z_params)
2×2 Matrix{ComplexF64}:
 0.00381839+0.0247966im    0.996392-0.0253812im
   0.996111-0.0249991im  0.00374364+0.0249161im