How to slice 3D object
    7 views (last 30 days)
  
       Show older comments
    
I have a cubic box with dimension of 1 x 1 x 1 with 100 spheres inside this box. I know the coordinate of x,y,z and radius of each spheres. I want to slice through this cubic box that is perpendicular to the z-direction at z=0.5.
x,y, and z have the dimension of 100 x 1.
Thank you
0 Comments
Answers (1)
  Sean de Wolski
      
      
 on 3 Jun 2015
        
      Edited: Sean de Wolski
      
      
 on 3 Jun 2015
  
      What do you mean by "slice"?
doc slice
?
sz = size(x)
xs = x(1:ceil(sz(1)/2),:,:);
?
3 Comments
See Also
Categories
				Find more on Surface and Mesh Plots in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
