在matlab中绘制3d数据的最佳方法是什么?

时间:2018-01-10 15:11:41

标签: matlab plot

如果我有NxN网格格式的数据(例如参见figure),并且每个单元格大小由(Xmax / N)x(Ymax / N)给出,并且每个单元格中给出的数据是频率数据。那个细胞。在MATLAB中以图形方式表示此数据的最佳方法是什么,以便轻松查看每个单元的频率?如果我想在这个例子中做到这一点(参见colormap),我该怎么做呢?我应该使用什么功能?

1 个答案:

答案 0 :(得分:3)

您的选择。在这里,我提出了几种可能性:

  • bar3:如果你的分数是离散的意思

enter image description here

  • surfmesh:如果点数是连续的意义 https://uk.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/35305/versions/3/screenshot.jpg enter image description here

- imshowimage enter image description here

  • 在MATLAB 2017b或更新版本中,heatmap enter image description here

- contour,如果您有足够详细的数据

enter image description here

可能会有更多,请随时将它们添加到帖子中。