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

2 次查看(过去 30 天)
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!

采纳的回答

Matt J
Matt J 2021-2-5
编辑:Matt J 2021-2-5
You can use plotregion from the File Exchange,
lb=centroid-dimension/2;
ub=centroid+dimension/2;
plotregion([],[],lb,ub);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by