# axialRatio

Calculate and/or plot axial ratio of antenna or array

## Syntax

``axialRatio(object,frequency,azimuth,elevation)``
``ar = axialRatio(object,frequency,azimuth,elevation)``

## Description

example

````axialRatio(object,frequency,azimuth,elevation)` plots axial ratio of an antenna over a specified frequency in the direction specified by `azimuth` and `elevation`. Any one among frequency, azimuth, or elevation values must be scalar. If only one of the values are scalar, the plot is 3-D. If two values are scalar, the plot is 2-D.```

example

````ar = axialRatio(object,frequency,azimuth,elevation)` returns the axial ratio of an antenna over the specified frequency in the direction specified by `azimuth` and `elevation`.```

## Examples

collapse all

Calculate the axial ratio of an equiangular spiral antenna at azimuth=0 and elevation=0.

```s = spiralEquiangular; ar = axialRatio(s,3e9,0,0)```
```ar = Inf ```

Create a cloverleaf antenna.

```cl = cloverleaf; show(cl);```

Plot the axial ratio of the antenna from 5 GHz to 6 GHz.

```freq = linspace(5e9,6e9,101); axialRatio(cl,freq,0,0);```

The axial ratio plot shows that the antenna supports circular polarization over the entire frequency range.

## Input Arguments

collapse all

Antenna or array to calculate the axial ratio, specified as either of these objects:

Example: `dipole`

Example: `linearArray(Element=dipole)`

Frequency used to calculate axial ratio, specified as a scalar or vector in Hz.

Example: 70e6

Data Types: `double`

Azimuth angle used to calculate the axial ratio, specified as a scalar or vector in degrees.

Example: 0

Data Types: `double`

Elevation angle used to calculate the axial ratio, specified as a scalar or vector in degrees.

Example: 0

Data Types: `double`

## Output Arguments

collapse all

Axial ratio of antenna, returned as a scalar in dB.

## Version History

Introduced in R2015a