Plot 3D cylindrical voxels filled or empty (boolean)
Ältere Kommentare anzeigen
Hi,
I have a matrix called h of size 9x36x20 [r, theta, z], containing 1's and 0's. Each number represent a voxel in a cylindrical figure. I would like to be able to plot in a 3d figure those with a 1 with some filled color, while leaving those with a zero transparent (could be with borders though, to make them look like a grid).
I would like to obtain something like this (drawn in inkscape, the matlab figure would be the whole cylinder with some red voxels).

Is it possible? I have already plotted some horizontal slices using patch to show the data at different heights, but this way is more representative
1 Kommentar
darova
am 23 Mai 2020
Can you attach the data? What about isosurface?
Akzeptierte Antwort
Weitere Antworten (1)
Diego Mesa
am 24 Mai 2020
Bearbeitet: Diego Mesa
am 24 Mai 2020
0 Stimmen
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!









