How to draw voxel image?

8 views (last 30 days)
kmsimage
kmsimage on 15 Apr 2015
Commented: Iuliu Ardelean on 10 Jun 2022
I have a 3D matrix of size 498*201*151 containing binary data(1s and 0s) How can I draw a voxel image out of this data?
  1 Comment
Badreddine Alane
Badreddine Alane on 23 May 2019
if you had found the way to plot this voxel image, please let me know i need it

Sign in to comment.

Answers (1)

Sean de Wolski
Sean de Wolski on 15 Apr 2015
doc isosurface
Is probably a good first bet
  3 Comments
Sean de Wolski
Sean de Wolski on 22 Apr 2015
define "it doesn't work" it does work for me:
x = rand(10,10,10)>0.5;
patch(isosurface(x,0.5),'FaceColor','r','EdgeColor','none')
view(30,30)
Iuliu Ardelean
Iuliu Ardelean on 10 Jun 2022
works A1 okey-dokey thank you

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!