MATLAB Answers

How can I visualize a 3D matrix with boolean values (0 or 1)?

25 views (last 30 days)
Hi everyone.
I have a 3D matrix with Boolean values (0 or 1). Could you please tell me how I can visualize it in MATLAB? I just want to visualize it and show it in Word.
Thank in advance for your help.


Sign in to comment.

Accepted Answer

Ahmet Cecen
Ahmet Cecen on 5 Mar 2018
Isosurface is one way.
Vol3D is another.
Export to VTK then ParaView is yet another.


Hamed Bizhani
Hamed Bizhani on 5 Mar 2018
Thank you Ahmet. But I think I couldn't say my aim properly. Actually I don't want to plot it. I just want to make it as a cube. Below you can see the cube that I want. Each small cube can be Zero or One.
Jan on 5 Mar 2018
@Hamed: I do no see the difference between your needs and the output of Vol3D. The cubes cannot be "Zero or One", but maybe you mean black or white. But Vol3D is able to do exactly this. Please clarify, why it does not help already.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by