# 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

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);```

expand all

### 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}}$