How do I graph the portion of the sphere in the first octant?

5 vues (au cours des 30 derniers jours)
R
R le 30 Nov 2018
I'm trying to graph x^2+y^2+z^2 = 4 in the first octant. How do I go about doing this?

Réponses (1)

Mark Sherstan
Mark Sherstan le 30 Nov 2018
[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])
Screen Shot 2018-11-30 at 9.34.14 AM.png

Community Treasure Hunt

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

Start Hunting!

Translated by