Engee documentation

z2gamma

Converts resistances into reflection coefficients.

Library

EngeeRF

Syntax

Function call

  • gamma = z2gamma(z) — converts resistances z c Reflection coefficients gamma using the value of the calculated impedance 50 Om.

  • gamma = z2gamma(z, z0) — converts resistances z c Reflection coefficients gamma using the value of the calculated impedance z0.

Arguments

Input arguments

# z — resistance

+ scalar | vector

Details

Resistances specified as a scalar or vector.

Типы данных

Float64

Support for complex numbers

Yes

# z0 is the calculated impedance, ohms

+ 50 (by default) | scalar | vector

Details

The calculated impedance in ohms, specified as a scalar or vector.

Типы данных

Float64

Output arguments

# gamma — reflection coefficients

+ scalar | vector

Details

Reflection coefficients returned as a scalar or vector.

Типы данных

Float64

Support for complex numbers

Yes

Examples

Calculation of the reflection coefficient

Details

We calculate the reflection coefficient from a given resistance value and the calculated impedance 50 Om.

using EngeeRF

z = 100
gamma = z2gamma(z)

println("gamma = ",gamma)
gamma = 0.3333333333333333

Algorithms

The transformation is performed according to the following equation: