How can I plot a set of 3D rectangles?

4 visualizaciones (últimos 30 días)
mr mo
mr mo el 21 de Mzo. de 2017
Editada: mr mo el 21 de Mzo. de 2017
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.

Respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by