
How do I graph the portion of the sphere in the first octant?
조회 수: 3 (최근 30일)
이전 댓글 표시
I'm trying to graph x^2+y^2+z^2 = 4 in the first octant. How do I go about doing this?
댓글 수: 0
답변 (1개)
Mark Sherstan
2018년 11월 30일
[x y z] = sphere;
r = 2;
surf(x*r, y*r, z*r);
xlim([0 2.5])
ylim([0 2.5])
zlim([0 2.5])

댓글 수: 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!