Borrar filtros
Borrar filtros

How to plot multiple cubes if I know the x,y,z centroids and dimension

3 visualizaciones (últimos 30 días)
Hi fellows, Could you tell me how to plot multiple cubes using x,y,z-centroids and dimension? For example, I have some original data, including the x,y,z-centroids and size of cubes. The following figure shows the data of some cubes. After importing these data, how to plot these cubes with Matlab? Many thanks in advance!

Respuesta aceptada

Matt J
Matt J el 5 de Feb. de 2021
Editada: Matt J el 5 de Feb. de 2021
You can use plotregion from the File Exchange,
lb=centroid-dimension/2;
ub=centroid+dimension/2;
plotregion([],[],lb,ub);
  2 comentarios
Matt J
Matt J el 5 de Feb. de 2021
You're welcome, but please Accept-click the answer to indicate that it resolved your question.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots 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