我需要绘制多个领域和我所用的示例代码从mathwork帮助如下 -如何在Matlab中绘制球体时定义半径?
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])
我需要的领域是不同的半径。我如何为每个球体定义半径?