Borrar filtros
Borrar filtros

How to slice 3D object

3 visualizaciones (últimos 30 días)
Laura
Laura el 3 de Jun. de 2015
Editada: Laura el 8 de Jun. de 2015
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

Respuestas (1)

Sean de Wolski
Sean de Wolski el 3 de Jun. de 2015
Editada: Sean de Wolski el 3 de Jun. de 2015
What do you mean by "slice"?
doc slice
?
sz = size(x)
xs = x(1:ceil(sz(1)/2),:,:);
?
  3 comentarios
Sean de Wolski
Sean de Wolski el 3 de Jun. de 2015
Slice function or interp3 would do that for you.
Laura
Laura el 8 de Jun. de 2015
I look at slice function, however I don't quite understand how it works. They define the volume (V) such as some kind of functions? what is that?. Please helps. Thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by