我需要繪製多個領域和我所用的示例代碼從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])
我需要的領域是不同的半徑。我如何爲每個球體定義半徑?