在 MATLAB 中绘制 3-D 矩阵 *values* [英] Plotting 3-D Matrix *values* in MATLAB

查看:31
本文介绍了在 MATLAB 中绘制 3-D 矩阵 *values*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 3D 矩阵 M(256x256x136),M 中的每个索引 (i,j,k) 都有一个灰度值.我有兴趣在 MATLAB 中以某种 3D 绘图显示 M,但我无法这样做.我不能使用 plot3,因为 plot3 用于绘制点,而不是值.

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.

谢谢

推荐答案

如果我正确理解你的问题,你想用 i,j 绘制 3D 点云, k 为 3D 坐标,灰度为点值.

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.

我建议使用 scatter3.

I would suggest using scatter3.

这篇关于在 MATLAB 中绘制 3-D 矩阵 *values*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆