invhsv.m

来自「SDFGASFASFASFAS EDGSGA DGSFGSA」· M 代码 · 共 24 行

M
24
字号
function color_map = invhsv(num_color);

% INVHSV - returns inverted HSV colormap
%
%    CMAP = INVHSV(NCOLOR) returns an inverted HSV colormap of length
%    NCOLOR.
%
%    CMAP = INVHSV returns the inverted HSV colormap having the same
%    length as the current colormap.

% By:   S.C. Molitor (smolitor@bme.jhu.edu)
% Date: April 11, 2000

% use current colormap size if none provided

if (nargin < 1)
   num_color = size(get(gcf, 'Colormap'), 1);
end

% return inverted HSV colormap

color_map = flipdim(hsv(num_color), 1);
return

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?