How to plot multiple cubes if I know the x,y,z centroids and dimension
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/509967/image.png)
0 Kommentare
Akzeptierte Antwort
Matt J
am 5 Feb. 2021
Bearbeitet: Matt J
am 5 Feb. 2021
You can use plotregion from the File Exchange,
lb=centroid-dimension/2;
ub=centroid+dimension/2;
plotregion([],[],lb,ub);
2 Kommentare
Matt J
am 5 Feb. 2021
You're welcome, but please Accept-click the answer to indicate that it resolved your question.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!