我需要绘制多个球体,我正在使用来自MathWorks帮助的示例代码,如下所示 -
figure
[x,y,z] = sphere();
surf(x,y,z) % sphere centered at origin
hold on
surf(x+3,y-2,z) % sphere centered at (3,-2,0)
surf(x,y+1,z-3) % sphere centered at (0,1,-3)
daspect([1 1 1])
我需要这些球拥有不同的半径。我该如何为每个球定义半径?