THE AUDITORY MODELING TOOLBOX

Applies to version: 1.4.0

View the code

Go to function

SPH2HORPOLAR - from spherical to horizontal-polar coordinate system

Usage:

[lat,pol] = sph2horpolar(azi,ele)

Input parameters:

azi azimuth in deg
ele elevation in deg

Output parameters:

lat lateral angle in deg, [-90 deg, +90 deg]
pol polar angle in deg, [-90 deg, 270 deg]

Description:

sph2horpolar(...) converts spherical coordinates (azimuth and elevation angles) into the coordinates of the horizontal-polar system (lateral and polar angles).