% 画出Matlab的Logo作为测试
peaks;shading flat;
% 设置数值显示范围,
caxis([-6,6]);
% 选择颜色样例并设置间断个数,奇数可显示中间0值白色
colormap(othercolor('RdBu7',7))
% 显示colorbar
colorbar;
Last modification:June 26th, 2020 at 06:06 pm
If you think my article is useful to you, please feel free to appreciate