clc
%% Written by Yafeng Pan, July 2015%%
x = [matrix] %直接从excel里复制进来
a=x;image(a,'CDataMapping','scaled');colorbar %colorbar 的scale可以到figure界面-编辑-颜色图中修改

%%Examples
% x = [1,2,3,4,5
% 2,1,5,3,4
% 3,4,1,5,2
% 4,2,5,1,3
% 5,3,4,2,1]
% a=x;image(a,'CDataMapping','scaled');colorbar;colormap('parula')