Hi, I have a 3D logical matrix with a background of zeros, and an sphere in the centre of ones. How can I display a transparent black cube with a white sphere inside? The matrix is T, I have tried with figure,isosurface(T,0) but I don't know why it display green the sphere and the background white. Figure,isosurface(T,1) doesn't display nothing. Thanks very much.
[xx yy zz] = meshgrid(1:45,1:45,1:45);
T = sqrt((xx-25).^2+(yy-25).^2+(zz-25).^2)<=16;
figure,isosurface(T,0)
|
|
0
|
|
|
|
Reply
|
Marcos
|
12/14/2010 12:11:05 PM |
|