show axes of spherical coordinates
조회 수: 4 (최근 30일)
이전 댓글 표시
In this plot obtained from the code
[x, y, z] = sphere;
surf(x, y, z);
xlabel('x'); ylabel('y'); zlabel('z');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168457/image.jpeg)
is there some way to show the phi coordinate (instead of x and y) and the theta coordinate (instead of y).
댓글 수: 0
답변 (1개)
KSSV
2017년 10월 20일
You can convert those Cartesian coordinates into spherical coordinates using cart2sph but it would be not nice to display them.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!