What does cart2sph compute az,el,r or theta,phi,r

9 visualizaciones (últimos 30 días)
William Blanch
William Blanch el 18 de Feb. de 2025
Editada: David Goodmanson el 20 de Feb. de 2025
I've seen both in the function syntaxes. az,el,r theta,phi,r
I'm guessing it is the former but I wanted to be sure.

Respuesta aceptada

David Goodmanson
David Goodmanson el 18 de Feb. de 2025
Editada: David Goodmanson el 20 de Feb. de 2025
Hi William,
it's az and el.
[a b r] = cart2sph(0,1,0)
a = 1.5708
b = 0 % elevation
r = 1
[a b r] = cart2sph(0,0,1)
a = 0
b = 1.5708 % elevation
r = 1
I see elevation as an unfortunate choice compared to measuring angle down from the z axis, but it is what it is.

Más respuestas (0)

Categorías

Más información sobre Antennas, Microphones, and Sonar Transducers en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by