A = [5,4.56,5.11;4,4.6,4.0;4.9,5.33,5.12]; % 替换为实际的数据矩阵
h=pcolor(A);
h.FaceColor = 'interp';
colormap jet;
colorbar;
set(h,'LineStyle','none');
效果如下:
A = [5,4.56,5.11;4,4.6,4.0;4.9,5.33,5.12]; % 替换为实际的数据矩阵
h=pcolor(A);
h.FaceColor = 'interp';
colormap jet;
colorbar;
set(h,'LineStyle','none');
效果如下: