
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!