Conversion from spherical to cartesian coordinates

16 visualizaciones (últimos 30 días)
Physical geography
Physical geography el 9 de Dic. de 2013
I have a set of data points from a acoustic scanner that are defined in spherical coordinates. The azimuth goes from 0 to 180 (200x1 array) degrees and the elevation from 195.75 - 344.25 (166 x 1 array) degrees (the scanner was looking downwards). The radius is a 166 x 200 matrix. I want to convert this data set to cartesian coordinates for further processing but if I do the following:
th = (theta/180)*pi; ph = (phi/180)*pi; [Az,El] = meshgrid(th,ph); [x,y,z] = sph2cart(Az,El,radius)
it does not deliver any expected results. Do I forget something or do I something wrong with the azimuth and elevation angles?

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by