亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? som_recolorbar.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
字號:
function h=som_recolorbar(p, ticks, scale, labels)%SOM_RECOLORBAR Refresh and  rescale colorbars in the current SOM_SHOW fig.%% h = som_recolorbar([p], [ticks], [scaling], [labels])%%   colormap(jet); som_recolorbar   %% Input and output arguments ([]'s are optional) %  [p]      (vector) subplot number vector %           (string) 'all' (the default), 'comp' to process only%                    component planes        %  [ticks]  (string) 'auto' or 'border', default: 'auto'%           (cell array) p x 1 cell array of p row vectors%           (vector) the same ticks are applied to all given subplots%           (scalar) value is at least 2: the number of ticks to show, %                    evenly spaced between and including minimum and maximum %  [scale]  (string) 'denormalized' or 'normalized' (the default)%  [labels] (cell array) p x 1 cell array of cells containing strings%%  h        (vector) handles to the colorbar objects.%% This function refreshes the colorbars in the figure created by SOM_SHOW.% Refreshing  is necessary if you have changed the colormap.% Each colorbar has letter 'd' or 'n' and possibly 'u' as label. Letter 'd' means% that the scale is denormalized, letter 'n' that the scale is% normalized, and 'u' is for user specified labels.%% For more help, try 'type som_recolorbar' or check out online documentation.% See also SOM_SHOW %%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_recolorbar%% PURPOSE% % Refreshes the the colorbars in the figure.%% SYNTAX%%  h = som_recolorbar%  h = som_recolorbar(p)%  h = som_recolorbar(p, ticks)%  h = som_recolorbar(p, ticks, scaling)%  h = som_recolorbar(p, ticks, scaling, labels)%% DESCRIPTION%% This function refreshes the colorbars in the figure created by SOM_SHOW.% Refreshing is necessary if you have changed the colormap.  Each colorbar% has letter 'd' or 'n' and possibly 'u' as label. Letter 'd' means that the% scale is denormalized, letter 'n' that the scale is normalized, and 'u' is% for user specified labels.%% Different argument combinations:%% 1. Argument 'ticks' has string values:%  - 'auto' for input argument ticks sets the automatic tick%     marking on (factory default). %  - 'border' sets the tick marks to the color borders. This is %     convenient if there are only few colors in use. %%  Argument scale controls the scaling of the tick mark label values. %  'normalized' means that the tick mark labels are directly the values %  of the ticks, that is, they refer to the map codebook values. %  Value 'denormalized' scales the tick mark label values back to the original%  data scaling. This is made using som_denormalize_data.%% 2. Argument 'ticks' is a cell array of vectors:%  The values are set to be the tick marks to the colorbar specified by p.%  - if arg. scale is 'normalized' the ticks are set directly to the colorbar.%  - if arg. scale is 'denormalized' the tick values are first normalized %    in the same way as the data.%% 3. Argument 'ticks' is a vector%  As above, but the same values are used for all (given) subplots.%  % 4. Argument 'ticks' is a scalar%  The ticks are set to equally spaced values between (and including)%  minimum and maximum.%     % Argument 'labels' specify user defined labels to the tick marks%% NOTE: ticks are rounded to contain three significant digits.%% OPTIONAL INPUT ARGUMENTS% %  p        (vector) subplot number vector %           (string) 'all' (the default), 'comp' to effect only %                    component planes%%  ticks    (string) 'auto' or 'border', default: 'auto'%           (cell array) p x 1 cell array of p row vectors%           (vector) as the cell array, but the same vector is %                    applied to all given subplots%           (scalar) the number of ticks to show: these are %                    evenly space between minimum and maximum%%  scale    (string) 'denormalized' or 'normalized' (the default)%%  labels   (cell array) p x 1 cell array of cells containing strings%% OUTPUT ARGUMENTS%%  h        (vector) handles to the colorbar objects.%% EXAMPLE%%  colormap(jet(5)); som_recolorbar('all','border','denormalized')%      % Uses five colors and sets the ticks on the color borders.%      % Tick label values are denormalized back to the original data scaling%%  colormap(copper(64));som_recolorbar%      % changes to colormap copper and resets default ticking and labeling%%  som_recolorbar('all',3)%      % To put 3 ticks to each colorbar so that minimum, mean and%      % maximum values on the colorbar are shown.% %  som_recolorbar([1 3],{[0.1 0.2 0.3];[0.2 0.4]},'denormalized')%      % Ticks colorbar 1 by first normalizing values 0.1, 0.2, 0.3 and%      % then setting the ticks to the colorbar. Labels are of course %      % 0.1, 0.2 and 0.3. Ticks colorbar 3 in the same way using values%      % 0.2 and 0.4.%%  som_recolorbar([2 4],{[0.1 0.2];[-1.2 3]},'normalized',{{'1' '2'};{'a' 'b'}})%      % Ticks colorbar 2 and 4 directly to the specified values. Sets labels%      % '1' '2' and 'a' 'b' to the ticks.%%  som_recolorbar([2 4],{[0.1 0.2];[-1.2 3]},'normalized',{{'1' '2'};{'a' 'b'}})%      % as previous one, but normalizes tick values first%% SEE ALSO% %  som_show        Basic SOM visualization.%  som_normalize   Normalization operations.%  som_denormalize Denormalization operations.% Copyright (c) 1997-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/             % Version 1.0beta Johan 061197 % Version 2.0beta juuso 151199 130300 160600 181101%% Init & check %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%error(nargchk(0, 4, nargin))    % check no. of input args% Check the subplot vector p and  get the handles, exit if error% Default subplot vector is 'all'if nargin < 1 | isempty(p)                       % default p  p= 'all';end% check SOM_SHOW and get the figure data. Exit, if error[handles, msg, lattice, msize, dim, normalization, comps]= ...    vis_som_show_data(p, gcf);error(msg);                                       if nargin < 2 | isempty(ticks)                   % default tick mode is 'auto'  ticks = 'auto';elseif isa(ticks,'cell')                         % check for cell  tickValues = ticks;   ticks= 'explicit';elseif isa(ticks,'double') & length(ticks)>1,  tickValues = {ticks};   ticks = 'explicit'; elseif isa(ticks,'double') & length(ticks)==1,  tickValues = max(2,round(ticks));   ticks = 'evenspace'; endif ~ischar(ticks)                                % invalid argument  error('The second argument should be a string or a cell array of vectors.');endswitch ticks                                     % check ticks case {'auto','border'}, % nill case 'evenspace',   tickValues_tmp = cell(length(handles),1);   for i=1:length(handles), tickValues_tmp{i} = tickValues; end  tickValues = tickValues_tmp;  case 'explicit',   if length(tickValues)==1 & length(handles)>1,     tickValues_tmp = cell(length(handles),1);     for i=1:length(handles), tickValues_tmp{i} = tickValues{1}; end    tickValues = tickValues_tmp;   end  if length(tickValues) ~= length(handles),     error('Cell containing the ticks has wrong size.')  endotherwise  error('''auto'' or ''border'' expected for the second argument.');endif nargin < 3 | isempty(scale)                   % default mode is normalized  scale= 'normalized';endif ~ischar(scale)                                % check scale type  error('The third argument should be a string.'); endswitch scale                                     % check the string case { 'normalized', 'denormalized'} % ok case 'n', scale = 'normalized';  case 'd', scale = 'denormalized';  otherwise     error('''normalized'' or ''denormalized'' expected for the third argument.')endif nargin < 4 | isempty(labels)                  % default is autolabeling  labels = 'auto';elseif ~isa(labels,'cell')                       % check type  error('The fourth argument should be a cell array of cells containing strings.')else  labelValues=labels;                            % set labels  labels = 'explicit';  if length(labelValues) == length(handles)      % check size    ;  else    error('Cell containing the labels has wrong size')  endend%% Action %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%n = size(colormap,1)+1;                      % number of colors+1h_ = zeros(length(handles),1);  for i=1:length(handles),                   % MAIN LOOP BEGINS  axes(handles(i));                        % set axes, refres colorbar and    if comps(i)>=0,       h_(i)=colorbar;                          % get colorbar handles    colorbardir=get(h_(i),'YaxisLocation');    switch colorbardir                     % get colorbar direction &     case 'left'                            % set some strings      Tick='Xtick'; Lim='Xlim'; LabelMode='XTickLabelMode'; Label='XtickLabel';     case 'right'      Tick='Ytick'; Lim='Ylim'; LabelMode='YTickLabelMode'; Label='YtickLabel';     otherwise      error('Internal error: unknown value for YaxisLocation'); % fatal    end                                                                 switch ticks                              case 'auto'      set(h_(i),LabelMode,'auto');        % factory default ticking      tickValues{i}=get(h_(i),Tick);       % get tick values     case 'border'       limit=caxis;                              t=linspace(limit(1),limit(2),n);    % set n ticks between min and max       t([1 length(t)])=get(h_(i),Lim); % <- caxis is not necerraily the same       tickValues{i}=t;                    % as the colorbar min & max values     case 'evenspace'      limit = caxis;       t = linspace(limit(1),limit(2),tickValues{i});       t([1 length(t)])=get(h_(i),Lim);      tickValues{i}=t;      case 'explicit'      if comps(i)>0, 	if strcmp(scale,'normalized')     % normalize tick values	  tickValues{i} = som_normalize(tickValues{i},normalization{comps(i)});	end      end           otherwise       error('Internal error: unknown tick type')   % this shouldn't happen    end    %tickValues{i} = epsto0(tickValues{i});    switch labels     case 'auto'      switch scale                                case 'normalized'	labelValues{i} = round2(tickValues{i});     % use the raw ones        case 'denormalized'                 % denormalize tick values	if comps(i)>0, 	  labelValues{i} = som_denormalize(tickValues{i},normalization{comps(i)});	  labelValues{i} = round2(labelValues{i});     % round the scale	else	  labelValues{i} = round2(tickValues{i});	end       otherwise	error('Internal error: unknown scale type'); % this shouldn't happen      end     case 'explicit'      ;                                            % they are there already     otherwise      error('Internal error: unknown label type'); % this shouldn't happen    end    set(h_(i),Tick,tickValues{i});                 % set ticks and labels    set(h_(i),Label,labelValues{i});                    if comps(i)>0,       % Label the colorbar with letter 'n' if normalized, with letter 'd'       % if denormalized and 'u' if the labels are user specified        mem_axes=gca; axes(h_(i));      ch='  ';      if strcmp(scale,'normalized'),   ch(1)='n'; end      if strcmp(scale,'denormalized'), ch(1)='d'; end      if strcmp(labels,'explicit'),    ch(2)='u'; end      xlabel(ch);       axes(mem_axes);    end  endend                                              % MAIN LOOP ENDS %% Build output %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%if nargout>0  h=h_;endreturn; %% Subfunction: ROUND2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ROUND2 rounds the labels to tol significant digitsfunction r=round2(d)tol=3;zero=(d==0);d(zero)=1;k=floor(log10(abs(d)))-(tol-1);r=round(d./10.^k).*10.^k;r(zero)=0;%r=epsto0(r);%% Subfunction: ISVECTOR %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function t=isvector(v)% ISVECTOR checks if a matrix is a vector or nott=(ndims(v) == 2 & min(size(v)) == 1) & isnumeric(v);%% Subfunction: EPSTO0function t=epsto0(t)% EPSTO0 checks whether first tick value is *very* close to zero, % if so sets it to zero.if (t(end)-t(1))/t(end) > 1-0.005 & abs(t(1))<1, t(1) = 0; end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费毛片片v| 国产精品久久精品日日| 国产一区二区三区四区在线观看| 久久精品一区二区| 欧美视频精品在线观看| 成人国产在线观看| 男女男精品视频| 一区二区三区在线视频免费观看| 精品日韩欧美在线| 色香蕉久久蜜桃| av不卡在线播放| 国产不卡视频一区| 国产黄人亚洲片| 久久99精品国产麻豆不卡| 亚洲欧美偷拍卡通变态| 2021久久国产精品不只是精品| 日本精品一级二级| 99久久er热在这里只有精品66| 久久精品国产澳门| 日精品一区二区| 亚洲福利一二三区| 亚洲男人电影天堂| 日韩美女精品在线| 亚洲在线视频一区| 中文字幕一区二区三区乱码在线| 久久久久九九视频| 久久日一线二线三线suv| 欧美电视剧在线观看完整版| 91精品在线一区二区| 欧美精品 日韩| 欧美少妇性性性| 欧美性一级生活| 欧美性大战久久久久久久蜜臀| 欧美无人高清视频在线观看| 欧美午夜理伦三级在线观看| 欧美午夜片在线看| 欧美精品一区二区三区蜜桃 | 国产成人av电影| 成人黄色一级视频| 欧美日韩亚洲国产综合| 欧美一区二区三区在线观看视频| 欧美一区二区三区免费观看视频| 精品国产网站在线观看| 国产精品久久久一区麻豆最新章节| 中文字幕亚洲精品在线观看| 亚洲成av人影院| 狠狠色伊人亚洲综合成人| 成人久久18免费网站麻豆| 色综合久久综合网欧美综合网| 欧美日韩三级一区| 欧美国产精品一区二区| 亚洲狠狠爱一区二区三区| 九九九久久久精品| 91久久精品一区二区二区| 欧美成va人片在线观看| 亚洲免费视频成人| 91在线国内视频| 久久蜜臀中文字幕| 麻豆久久久久久久| 欧美精品在线视频| 亚洲天堂网中文字| 盗摄精品av一区二区三区| 欧美一级黄色录像| 亚洲国产欧美在线人成| 一本色道a无线码一区v| 中文字幕精品综合| 国产乱码精品1区2区3区| 日韩精品一区二区三区视频在线观看| 亚洲激情五月婷婷| 一本到不卡免费一区二区| 国产日韩精品一区二区三区 | 色av成人天堂桃色av| 久久精品人人做人人综合| 日本午夜一本久久久综合| 欧美性感一类影片在线播放| 亚洲欧美中日韩| 91麻豆精品国产| 亚洲一区二区三区中文字幕| 日本精品免费观看高清观看| 亚洲欧洲三级电影| 色综合天天综合在线视频| 亚洲乱码中文字幕综合| 欧美午夜精品理论片a级按摩| 1024成人网| 欧美色综合网站| 日本欧美大码aⅴ在线播放| 日韩视频中午一区| 国产盗摄精品一区二区三区在线| 国产精品美女久久久久高潮| eeuss鲁片一区二区三区| 一区二区三区精品| 久久女同性恋中文字幕| 成人高清视频在线观看| 一区二区欧美视频| 日韩一区和二区| 成人蜜臀av电影| 亚洲国产综合在线| 欧美国产精品一区二区| 欧美日韩国产成人在线91| 国产乱子伦视频一区二区三区| 中文字幕佐山爱一区二区免费| 欧美日韩精品欧美日韩精品一| 国产一区二区日韩精品| 亚洲成人在线免费| 国产精品乱人伦中文| 777a∨成人精品桃花网| bt欧美亚洲午夜电影天堂| 男女视频一区二区| 亚洲午夜久久久久久久久电影院| 精品国产在天天线2019| 欧美精品粉嫩高潮一区二区| 成人免费va视频| 国产乱码精品一区二区三区忘忧草| 天天色图综合网| 亚洲乱码国产乱码精品精可以看 | 久久精品国产亚洲高清剧情介绍| 日本一区二区三区国色天香 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 91免费版在线看| 不卡av电影在线播放| 国产成人av一区二区| 日本亚洲三级在线| 国产成人超碰人人澡人人澡| 美女免费视频一区二区| 天天影视网天天综合色在线播放| 中文字幕字幕中文在线中不卡视频| 久久精品网站免费观看| 久久精品无码一区二区三区| 久久久国产精品不卡| 国产午夜精品一区二区三区嫩草| 欧美成人精品1314www| 精品福利av导航| 亚洲精品一区二区三区精华液| 国产婷婷色一区二区三区| 国产丝袜欧美中文另类| 国产精品乱子久久久久| 一区二区三区欧美| 亚洲成av人**亚洲成av**| 亚洲成人久久影院| 激情另类小说区图片区视频区| 国产a久久麻豆| 在线观看91视频| 欧美va亚洲va国产综合| 国产精品不卡在线| 亚洲成av人片在线观看无码| 精品在线一区二区| 99久久er热在这里只有精品15| 欧洲av一区二区嗯嗯嗯啊| 91精品在线一区二区| 欧美国产亚洲另类动漫| 日韩精品亚洲一区| 韩国成人在线视频| 欧美一a一片一级一片| 久久丝袜美腿综合| 午夜av区久久| 成人av电影免费在线播放| 91麻豆精品国产自产在线| 国产精品久久综合| 青青草原综合久久大伊人精品优势| 成人中文字幕合集| 日韩天堂在线观看| 亚洲国产精品久久人人爱| 成人一区二区三区在线观看| 91精品国产高清一区二区三区| 国产精品乱人伦| 麻豆精品视频在线观看免费| 欧美中文字幕久久| 亚洲女同一区二区| av一区二区三区四区| 精品国产91乱码一区二区三区| 亚洲一区二区三区美女| 91免费看视频| 亚洲综合无码一区二区| 白白色亚洲国产精品| 中文字幕一区在线观看视频| 国产精品原创巨作av| 精品福利一二区| 懂色av一区二区在线播放| 中文字幕av资源一区| 91丝袜美腿高跟国产极品老师 | 亚洲国产日韩a在线播放性色| 91国产视频在线观看| 亚洲va天堂va国产va久| 色香蕉久久蜜桃| 青青草国产成人av片免费| 日韩精品一区二区三区视频播放| 日韩激情视频在线观看| 久久久综合九色合综国产精品| 国产一区二区三区精品视频| 精品美女在线播放| 国产suv精品一区二区6| 综合电影一区二区三区 | 欧美日韩中文另类| 日韩成人免费看| 国产欧美日韩视频在线观看| 一本大道久久a久久精二百| 日日摸夜夜添夜夜添精品视频| www激情久久| 在线观看国产一区二区| 久久精品99国产精品|