invgray.m
来自「SDFGASFASFASFAS EDGSGA DGSFGSA」· M 代码 · 共 24 行
M
24 行
function color_map = invgray(num_color);
% INVGRAY - returns inverted grayscale colormap
%
% CMAP = INVGRAY(NCOLOR) returns an inverted grayscale (white to black)
% colormap of length NCOLOR.
%
% CMAP = INVGRAY returns the inverted grayscale colormap having the
% same length as the current colormap.
% By: S.C. Molitor (smolitor@bme.jhu.edu)
% Date: January 25, 1999
% use current colormap size if none provided
if (nargin < 1)
num_color = size(get(gcf, 'Colormap'), 1);
end
% return inverted gray colormap
color_map = flipdim(gray(num_color), 1);
return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?