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

3 ビュー (過去 30 日間)
Chao Zhang
Chao Zhang 2021 年 2 月 4 日
コメント済み: Matt J 2021 年 2 月 5 日
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);
  2 件のコメント
Chao Zhang
Chao Zhang 2021 年 2 月 5 日
Thanks
Matt J
Matt J 2021 年 2 月 5 日
You're welcome, but please Accept-click the answer to indicate that it resolved your question.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-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