Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Chao Zhang
Chao Zhang le 4 Fév 2021
Commenté : Matt J le 5 Fév 2021
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!

Réponse acceptée

Matt J
Matt J le 5 Fév 2021
Modifié(e) : Matt J le 5 Fév 2021
You can use plotregion from the File Exchange,
lb=centroid-dimension/2;
ub=centroid+dimension/2;
plotregion([],[],lb,ub);
  2 commentaires
Matt J
Matt J le 5 Fév 2021
You're welcome, but please Accept-click the answer to indicate that it resolved your question.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by