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

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.

 Accepted Answer

Isosurface is one way.
Vol3D is another.
Export to VTK then ParaView is yet another.

3 Comments

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.
@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.
@jan. Thank you. Yes it worked for me.

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!