MATLAB: Sphere – increase granularity

3d plotsmesh

Is there a way to increase the granularity of the grid produced by the
sphere
command?

Best Answer

n = 100 ; % you may change n
[x,y,z] = sphere(n);
surf(x,y,z)