필터 지우기
필터 지우기

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
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 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