# vswr

VSWR at given reflection coefficient Γ

## Syntax

```ratio = vswr(gamma) ```

## Description

`ratio = vswr(gamma)` calculates the voltage standing-wave ratio VSWR at the given reflection coefficientΓ as

`$VSWR=\frac{1+|\Gamma |}{1-|\Gamma |}$`

The input `gamma` is a complex vector. The output `ratio` is a real vector of the same length as `gamma`.

## Examples

collapse all

Calculate the VSWR for a given reflection coefficient.

```gamma = 1/3; ratio = vswr(gamma)```
```ratio = 2.0000 ```