How to visualize N-by-M-by-O matrix
6 views (last 30 days)
Show older comments
Hello,
I have a matrix M and each element M(x,y,z) has a real value. I want to visualize the value at each (x,y,z) point by a color/size ratio to value. I searched for other questions and tutorials, but it seems that what I found (scatter3, etc) requires me to have several different vectors X,Y,Z and V for the values, where X,Y,Z are column vectors corresponding to each spacial property of V (value). This is incredibly inefficient and I was thinking maybe there's a simpler way of visualizing this data. I don't want to restructure my code from scratch.
Basically, what I have is a scalar funtion C = F(x,y,z) and I want to represent that function in space. Something like this - http://mathematica.stackexchange.com/questions/19575/what-are-the-possible-ways-of-visualizing-a-4d-function-in-mathematica
Please help!
Thank you in advance!
0 Comments
Answers (1)
Image Analyst
on 3 Jul 2014
No you can't use scatter3. You have true 3D volumetric data, perhaps like a CT or MRI image or something like that. MATLAB does not have good 3D visualization methods. You are pretty much limited to isosurfaces and cutaway views. You can't do true 3D volume rendering. If you want isosurfaces and cutaway views, then you can look up functions for that in the 3D visualization section of the help. If you need volumetric rendering, you'll need a more powerful program such as
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!