1 代码:
clc
clear all
close all
%a = rand(6,6);
[num] = xlsread('C:\Users\Gerald\... ...\matrix.xls');
xname = {'LPVC','RPVC','LSVC','RSVC','LVAC','RVAC','LOMC','ROMC'};
yname = {'LPVC','RPVC','LSVC','RSVC','LVAC','RVAC','LOMC','ROMC'};
h = heatmap(xname,yname,num);
h.CellLabelFormat = '%0.2f';
colormap(gca, 'jet') %设置颜色模式,参考如下
%sortx(h,'JUST')
sortx(YData,'JUST')
2 颜色模式选择