Plotting 3-D Matrix *values* in MATLAB

荒凉一梦 提交于 2019-12-29 08:54:05

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/9302484/plotting-3-d-matrix-values-in-matlab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!