⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myjet.m

📁 hi i have a huge collection are you interested
💻 M
字号:
function J = myjet(m)%function J = myjet(m)%MYJET: Variant of %{%JET	Variant of HSV.%	JET(M), a variant of HSV(M), is the colormap used with the%	NCSA fluid jet image.%	JET, by itself, is the same length as the current colormap.%	Use COLORMAP(JET).%%	See also HSV, HOT, PINK, FLAG, COLORMAP, RGBPLOT.%	C. B. Moler, 5-10-91, 8-19-92.%	Copyright (c) 1984-92 by The MathWorks, Inc.%}%					A. Knight, Nov, 1992if nargin < 1, m = size(get(gcf,'colormap'),1); endn = max(round(m/5),1);ramp = (1:n)'/n;o = ones(size(ramp));z = zeros(size(ramp));r = [z;    z;    ramp;         o;            o;    1];g = [z;    ramp; o;            flipud(ramp); ramp; 1];b = [ramp; o;    flipud(ramp); z;            ramp; 1];J = [r g b];while size(J,1) > m   J(1,:) = [];   if size(J,1) > m, J(size(J,1),:) = []; endend

⌨️ 快捷键说明

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