Main Content

uv2azel

Convert u/v coordinates to azimuth/elevation angles

Description

AzEl = uv2azel(UV) converts the u/v space coordinates to their corresponding azimuth/elevation angle pairs.

example

Examples

collapse all

Find the corresponding azimuth/elevation representation for u = 0.5 and v = 0.

azel = uv2azel([0.5; 0])
azel = 2×1

   30.0000
         0

Input Arguments

collapse all

Angle in u/v space, specified as a two-row matrix. Each column of the matrix represents a pair of coordinates in the form [u; v]. Each coordinate is between –1 and 1, inclusive. Also, each pair must satisfy u2 + v2≤ 1.

Data Types: double

Output Arguments

collapse all

Azimuth and elevation angles, returned as a two-row matrix. Each column of the matrix represents an angle in degrees, in the form [azimuth; elevation]. The matrix dimensions of AzEl are the same as those of UV.

More About

collapse all

Extended Capabilities

expand all

Version History

Introduced in R2012a