Convert azimuth and elevation angle to broadside angle

## Syntax

``bsang = az2broadside(az)``
``bsang = az2broadside(az,el)``

## Description

example

````bsang = az2broadside(az)` returns the broadside angle, `bsang`, corresponding to the azimuth angle, `az`, and zero elevation angle. All angles are define with respect to the local coordinate system.```

example

````bsang = az2broadside(az,el)` also specifies the elevation angle, `el`.```

## Examples

collapse all

Return the broadside angle corresponding to 45° azimuth and 0° elevation.

`bsang = az2broadside(45)`
```bsang = 45.0000 ```

Return the broadside angle corresponding to 45° azimuth and 45° elevation.

`bsang = az2broadside(45,45)`
```bsang = 30.0000 ```

Return broadside angles for 10 azimuth-elevation pairs.

```az = (75:5:120)'; el = (45:5:90)'; bsang = az2broadside(az,el);```

## Input Arguments

collapse all

Azimuth angle, specified as a scalar or vector of real values. Azimuth angles lie in the range from –180° to 180°. Units are in degrees.

Example: `[35;20;-10]`

Elevation angle, specified as a scalar or vector. The elevation angle lie in the range from –90° to 90°. The length of `el` must equal the length of `az`. Units are in degrees.

Example: `[5;2;-1]`

## Output Arguments

collapse all

Broadside angle, returned as a scalar or vector. The length of `bsang` equals the length of `az`. Units are in degrees.

collapse all