show axes of spherical coordinates

6 views (last 30 days)
Viesturs Veckalns
Viesturs Veckalns on 19 Oct 2017
Answered: KSSV on 20 Oct 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).

Answers (1)

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

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!