How can I plot a set of 3D rectangles?

조회 수: 5 (최근 30일)
mr mo
mr mo 2017년 3월 21일
편집: mr mo 2017년 3월 21일
I want to plot a set of 3D rectangles based on a text file shown below.
The XC, YC and ZC columns are the coordinates of the center of the rectangles.
The XL, YL and ZL are the length of the rectangles edges in X, Y and Z directions respectively.
And the PT column indicates the number that I want to display in the corresponding rectangle in the 3D plot.
at the end I want to preview the rectangles with PT<15 with blue color and the rectangles with PT>=15 with red color.
XC YC ZC XL YL ZL PT
rectangle 1 25 57 06 10 10 10 11
rectangle 2 25 82 81 13 10 10 12
rectangle 3 25 82 93 10 10 11 13
rectangle 4 25 07 68 10 10 10 14
rectangle 5 25 07 81 10 14 10 15
rectangle 6 25 32 68 17 10 10 16
rectangle 7 25 32 81 10 17 10 17
rectangle 8 25 57 56 16 10 10 18
rectangle 9 25 57 68 10 15 10 19
rectangle 10 25 57 81 10 10 18 20
How can I do that ?
with best regards.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by