
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!