Documentation

Convert azimuth angle to broadside angle

Syntax

`BSang = az2broadside(az,el)`

Description

`BSang = az2broadside(az,el)` returns the broadside angle `BSang` corresponding to the azimuth angle, `az`, and the elevation angle, `el`. All angles are expressed in degrees and in the local coordinate system. `az` and `el` can be either scalars or vectors. If both of them are vectors, their dimensions must match.

Examples

collapse all

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

`BSang = az2broadside(45,45);`

Return broadside angles for 10 azimuth/elevation pairs. The variables `az`, `el`, and `BSang` are all 10-by-1 column vectors.

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

collapse all

The broadside angle β corresponding to an azimuth angle az and an elevation angle el is:

$\beta ={\mathrm{sin}}^{-1}\left(\mathrm{sin}\left(az\right)\mathrm{cos}\left(el\right)\right)$

where –180 ≤ az ≤ 180 and –90 ≤ el ≤ 90.