Convert broadside angle to azimuth angle
Convert Broadside Angle to Azimuth Angle at Zero Elevation
Return the azimuth angle corresponding to a broadside angle of 45° at 0° elevation.
az = broadside2az(45.0)
az = 45.0000
Convert Broadside Angle to Azimuth Angle
Return the azimuth angle corresponding to a broadside angle of 45° and an elevation angle of 20°.
az = broadside2az(45,20)
az = 48.8063
Convert Multiple Broadside Angles to Azimuth Angles
Return azimuth angles for 10 pairs of broadside angle and elevation angle.
BSang = (45:5:90)'; el = (45:-5:0)'; az = broadside2az(BSang,el);
bsang — Broadside angle
scalar | vector of real values
Broadside angle, specified as a scalar or vector of real values. Units are in degrees. This argument supports single and double precision.
el — Elevation angle
0 (default) | scalar | vector of real values
Elevation angle, specified as a scalar or vector of real values. The length of
el must match the length of
bsang. Elevation angles lie in the range from –90°
to 90°. Units are in degrees. This argument supports single and double
Broadside angles are useful in describing the response pattern of a uniform linear array (ULA).
For the definition of the broadside angle and how to convert between azimuth and elevation, and broadside angle see Broadside Angles. For definitions of the azimuth and elevation angles, see Azimuth and Elevation Angles.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Does not support variable-size inputs.