clc;clear all;close all;
m=10;
n=5;
A = randn(m,n);
colormap(‘hot’); %设置colormap
contourf(1:n,1:m,A,‘LineStyle’,‘none’,‘LevelStep’,0.1);
%% ‘LineStyle’,‘none’–取消格子线
%% ‘LevelStep’,0.05–颜色过渡的平滑性
shading interp
colorbar
clc;clear all;close all;
m=10;
n=5;
A = randn(m,n);
colormap(‘hot’); %设置colormap
contourf(1:n,1:m,A,‘LineStyle’,‘none’,‘LevelStep’,0.1);
%% ‘LineStyle’,‘none’–取消格子线
%% ‘LevelStep’,0.05–颜色过渡的平滑性
shading interp
colorbar