首页 > 解决方案 > 需要在mathematica中突出显示数组图中的某个元素

问题描述

数组图是使用列表构建的。我想用红色指针标记最大强度元素。是否可以?

标签: arraysplotwolfram-mathematica

解决方案


这是你想要的

m = {{1, 0, 0, 0.3}, {2, 7, 0, 0.3}, {1, 0, 1, 0.7}};
ArrayPlot[m /. Last[Sort[Flatten[m]]] -> Red]

在此处输入图像描述


推荐阅读