📄 bluewhite.m
字号:
function m = bluewhite(n) if nargin < 1 n = size(get(gcf,'colormap'),1); endnon2 = floor(n/2);% Testscript:% subplot 221,imagesc(1:64),colormap(blueyellow),subplot 222,imagesc(peaks),subplot 223,rgbplot(blueyellow),axis([0 64 0 1])x = linspace(0,1,n);% Interpolate to a set of control pointsxcontrol = linspace(0,1,5);ycontrol = [.425 .45 .5 .7 1];red = interp1(xcontrol,ycontrol,x);xcontrol = linspace(0,1,5);ycontrol = [.425 .45 .5 .7 1];green = interp1(xcontrol,ycontrol,x);xcontrol = linspace(0,1,5);ycontrol = linspace(.6,1,5);blue = interp1(xcontrol,ycontrol,x);m = [red' green' blue'];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -