show axes of spherical coordinates

3 visualizaciones (últimos 30 días)
Viesturs Veckalns
Viesturs Veckalns el 19 de Oct. de 2017
Respondida: KSSV el 20 de Oct. de 2017
In this plot obtained from the code
[x, y, z] = sphere;
surf(x, y, z);
xlabel('x'); ylabel('y'); zlabel('z');
is there some way to show the phi coordinate (instead of x and y) and the theta coordinate (instead of y).

Respuestas (1)

KSSV
KSSV el 20 de Oct. de 2017
You can convert those Cartesian coordinates into spherical coordinates using cart2sph but it would be not nice to display them.

Categorías

Más información sobre Surface and Mesh Plots 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