Accelerating the pace of engineering and science

# Documentation

Convert azimuth angle to broadside angle

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

expand all

### Broadside Angle for Scalar Inputs

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

`BSang = az2broadside(45,45);`

### Broadside Angles for Vector Inputs

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

expand all

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