show axes of spherical coordinates

3 次查看(过去 30 天)
Viesturs Veckalns
Viesturs Veckalns 2017-10-19
回答: KSSV 2017-10-20
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).

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by