I have an array of position and radius of multiple spheres. I am trying to express them in one single 3D volume plot so that i can see how well they are packed.
From the Matlab documentation i found the following code. What changes should i make so that we can express it for an array of position and radius for multiple spheres?
[x,y,z] = sphere;
figure
surf(x,y,z)
hold on
surf(x+3,y-2,z); % centered at (3,-2,0)
surf(x,y+1,z-3); % centered at (0,1,-3)