Documentation

# gammaout

Output reflection coefficient of 2-port network

## Syntax

```coefficient = gammaout(s_params,z0,zs) coefficient = gammaout(hs,zs) ```

## Description

`coefficient = gammaout(s_params,z0,zs)` calculates the output reflection coefficient of a 2-port network.

`s_params` is a complex 2-by-2-by-M array, representing M 2-port S-parameters. `z0` is the reference impedance Z0; its default is 50 ohms. `zs` is the source impedance Zs; its default is also 50 ohms. `coefficient` is an M-element complex vector.

`coefficient = gammaout(hs,zs)` calculates the output reflection coefficient of the 2-port network represented by the S-parameter object `hs`.

## Examples

collapse all

Calculate the output reflection coefficient using network data from a file.

```ckt = read(rfckt.amplifier,'default.s2p'); s_params = ckt.NetworkData.Data; z0 = ckt.NetworkData.Z0; zs = 100; coefficient = gammaout(s_params,z0,zs)```
```coefficient = 191×1 complex -0.0741 - 0.3216i -0.0765 - 0.3184i -0.0787 - 0.3152i -0.0809 - 0.3121i -0.0829 - 0.3090i -0.0848 - 0.3059i -0.0867 - 0.3029i -0.0884 - 0.3000i -0.0900 - 0.2971i -0.0915 - 0.2943i ⋮ ```

## Algorithms

The function calculates `coefficient` using the equation

`${\Gamma }_{out}={S}_{22}+\frac{{S}_{12}{S}_{21}{\Gamma }_{S}}{1-{S}_{11}{\Gamma }_{S}}$`

where

`${\Gamma }_{S}=\frac{{Z}_{s}-{Z}_{0}}{{Z}_{s}+{Z}_{0}}$`