Reputation: 1410
I have a 3D Matrix M(256x256x136) and each index(i,j,k) in M has a gray level value in it. I am interested in displaying M in some sort of a 3D plot in MATLAB, but am unable to do so. I cannot use plot3 because plot3 is for plotting points, not the values.
Thanks
Upvotes: 3
Views: 9355
Reputation: 700
If I understand your question correctly, you want to plot the 3D point cloud with i
,j
, and k
as 3D coordinates and the gray level as the point value.
I would suggest using scatter3
.
Upvotes: 2
Reputation: 2788
Sounds like you are looking for a volume renderer. For Matlab, you could try this one: Volume Render from Matlab Central
An isosurface
plot might be useful as well.
Upvotes: 1