📄 centercolormap.m
字号:
function centerColorMap(data,trimFrac)%% center the colours so that zero is the central color on the%% colormap%%%% trimFrac help avoid outlier problems. the larger the data set%% the higher this should be in general%% eg. trimFrac=0.9999%%%% need to call colorbar again to update it%% center the zero color:sortVals = sort(abs(data(:)));%% take 95th percentilemaxVal = sortVals(floor(trimFrac*length(sortVals)));myclim = [-maxVal maxVal];%myclimcaxis(myclim);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -