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

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

?? vis_trajgui.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
?? 第 1 頁 / 共 3 頁
字號:
 case {'normal','alt'}  draw_poly; case 'extend'  click_node;end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function click_node()% takes care of the action, when the middle mouse button is% pressed (mouse pointer is above some component plane).udata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');new_marks=[];old=gcf;NEW=0;AGAIN = 0;coords=get(gca,'CurrentPoint');row=round(coords(1,2));if strcmp(udata.lattice,'hexa') & ~mod(row,2)  col = round(coords(1,1) - 0.5);else  col = round(coords(1,1));endind = sub2ind(udata.msize,row,col);new_marks=find(udata.bmus==ind);if strcmp(get(gcbo,'Tag'),'TmpPatch');    % if the callback is made via temporary patch object, node is marked  % (node is black) => the mark is to be removed     node_color = getfield(get(gcbo,'FaceVertexCData'),{ind,[1:3]});  AGAIN = 1;endfor i=1:length(udata.tmp_patch)  color = get(udata.tmp_patch(i),'FaceVertexCData');  if length(size(color)) ~= 2    color = reshape(color,[size(color,1) 3]);  end  if all(isnan(color(ind,:)))    NEW=1;    color(ind,:)=[0 0 0];  else    color(ind,:)=[NaN NaN NaN];  end  set(udata.tmp_patch(i),'FaceVertexCData',color);endset(0,'CurrentFigure',udata.fig1);for j=1:length(udata.h)  subplot(udata.h(j));  if NEW    y=getfield(get(udata.d(j),'YData'),{new_marks});    udata.d_mark(j).h=[udata.d_mark(j).h;plot(new_marks,y,'Color',[0 0 0],...                                              'LineStyle','none',...                                              'Marker','o')];  endendif ~isempty(udata.fig2)  set(0,'CurrentFigure',udata.fig2);  for j=1:length(udata.h2);    subplot(udata.h2(j));    if NEW      y=getfield(get(udata.d2(j),'YData'),{new_marks});      udata.d_mark2(j).h=[udata.d_mark2(j).h;plot(new_marks,y,...						  'LineStyle','none',...						  'Color','black',...						  'Marker','o')];    end  endendif NEW  udata.new_marks=[udata.new_marks; new_marks];endif AGAIN    % find marks from the data that map to the clicked node. if the color  % of the mark(s) is the same as the node's color, remove mark(s), else  % let mark be unchanged.    for i=1:length(udata.d_mark(1).h)    if all(node_color==get(udata.d_mark(1).h(i),'Color'))      tmp1 = get(udata.d_mark(1).h(i),'XData');      tmp2 = setdiff(tmp1,new_marks);      if length(tmp1) ~= length(tmp2)        inds=[];        for j=1:length(tmp2);          inds=[inds find(tmp2(j)==tmp1)];        end        for j=1:length(udata.d_mark)          ydata=getfield(get(udata.d_mark(j).h(i),'YData'),{inds});          set(udata.d_mark(j).h(i),'XData',tmp2,'YData',ydata);        end        if ~isempty(udata.fig2)          for j=1:length(udata.d_mark2)            ydata=getfield(get(udata.d_mark2(j).h(i),'YData'),{inds});            set(udata.d_mark2(j).h(i),'XData',tmp2,'YData',ydata);          end        end      end      end  end  udata.new_marks=setdiff(udata.new_marks, new_marks);  udata.all_marks=setdiff(udata.all_marks,new_marks);endset(udata.fig1,'UserData',udata);set(0,'CurrentFigure',old);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function draw_poly()udata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');if isempty(udata.poly.x)  if strcmp(get(gcf,'SelectionType'),'alt')    return;  end  udata.poly.THIS = gca;end% 'THIS' indicates what was the axes where the polygon was meant to% drawn. It is not possible to add points, that lie in another axes, to the% polygon.if gca ~= udata.poly.THIS  return;endcoords(1,1) = getfield(get(gca,'CurrentPoint'),{3});coords(1,2) = getfield(get(gca,'CurrentPoint'),{1});udata.poly.x=cat(1,udata.poly.x,coords(2));udata.poly.y=cat(1,udata.poly.y,coords(1));%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% remove old 'polygon' from axisdelete(udata.poly.h);switch get(gcf,'SelectionType') case 'normal'    % add point to the 'polygon' and draw it    for i=1:length(udata.a_h)    subplot(udata.a_h(i));    hold on;    udata.poly.h(i) = plot(udata.poly.x,udata.poly.y,'black',...			   'EraseMode','xor',...			   'ButtonDownFcn',...			   'vis_trajgui([],''click'')',...			   'LineWidth',2);  end case 'alt'    % The polygon is ready.      udata.poly.x=cat(1,udata.poly.x,udata.poly.x(1));  udata.poly.y=cat(1,udata.poly.y,udata.poly.y(1));    for i=1:length(udata.a_h)    subplot(udata.a_h(i));    udata.poly.h(i) = plot(udata.poly.x,udata.poly.y,'black',...			   'EraseMode','xor',...			   'ButtonDownFcn',...			   'vis_trajgui([],''click'')',...			   'LineWidth',2);  end    tmp=sort(repmat((1:udata.msize(1))',udata.msize(2),1));  tmp(:,2)=repmat((1:udata.msize(2))',udata.msize(1),1);  tmp2=tmp;  if strcmp(udata.lattice,'hexa');    t=find(~rem(tmp(:,1),2));    tmp(t,2)=tmp(t,2)+0.5;  end      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  % find the nodes that lie inside polygon and change coordinates to  % linear indices.    in = find(inpolygon(tmp(:,2),tmp(:,1),udata.poly.x,udata.poly.y));  in = sub2ind(udata.msize,tmp2(in,1),tmp2(in,2));    colors=get(udata.tmp_patch(1),'FaceVertexCData');  colors=reshape(colors,[size(colors,1) 3]);  tmp=ones(length(in),1);    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % set the color of the nodes just selected, black.    colors(in,:)=tmp*[0 0 0];  set(udata.tmp_patch,'FaceVertexCData',colors);    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  % find the points mapping to the nodes from data     inds = [];  for i=1:length(in)    inds=[inds;find(in(i) == udata.bmus)];  end    %%%%%%%%%%%%%%%%%%%    % plot marks to data    set(udata.fig1,'UserData',udata);  plot2data(inds);  udata=get(udata.fig1,'UserData');  udata.new_marks=union(udata.new_marks,inds);  delete(udata.poly.h);  udata.poly.h=[];  udata.poly.x=[];  udata.poly.y=[];  udata.poly.THIS=[];endset(udata.fig1,'UserData',udata);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function save_data()udata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');data.points=[];data.nodes=[];k=1;for i=1:length(udata.d_mark(1).h)  data.points(i).inds=get(udata.d_mark(1).h(i),'XData');  data.points(i).color=get(udata.d_mark(1).h(i),'Color');endcolor=get(udata.tmp_patch(1),'FaceVertexCData');color=reshape(color,[size(color,1) 3]);for i=1:size(color,1)  if all(~isnan(color(i,:)))    tmp.ind=i;    tmp.color=color(i,:);    data.nodes(k)=tmp;    k=k+1;  endendanswer=inputdlg('Enter the name of the output variable:','',1);if isempty(answer) | isempty(answer{1})  msgbox('Output is not set to workspace.');  return;else  assignin('base',answer{1},data);  disp(sprintf('Struct is set to the workspace as ''%s''.',answer{1}));end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function load_data()answer = inputdlg('Enter the name of the struct to be loaded:','',1);if isempty(answer) | isempty(answer{1})  msgbox('Data is not loaded.');  return;enddata=evalin('base',answer{1});if ~isstruct(data)    errordlg('Input variable must be a struct.');  return;endtmp1 = fieldnames(data);tmp2 = {'nodes','points'};for i=1:length(tmp1)  for j=1:length(tmp2);    if ~any(strcmp(tmp2{j},tmp1))      errordlg('Wrong type of struct.');      return;    end  endendif ~isempty(data.points)  tmp1=fieldnames(data.points(1));endif ~isempty(data.nodes)  tmp2=fieldnames(data.nodes(1));endfor i=1:length(tmp1)  if ~any(strcmp(tmp1{i},{'inds','color'}))    errordlg('Wrong type of struct.');    return;  endendfor i=1:length(tmp2)  if ~any(strcmp(tmp2{i},{'ind','color'}))    errordlg('Wrong type of struct.');    return;  endendudata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');clear_markers;remove_traj;old = gcf;for i=1:length(data.points)  for j=1:length(udata.h);    set(0,'CurrentFigure',udata.fig1);    subplot(udata.h(j));    ydata=getfield(get(udata.d(j),'YData'),{data.points(i).inds});    udata.d_mark(j).h=[udata.d_mark(j).h;...                       plot(data.points(i).inds,ydata,...			    'Color',data.points(i).color,...			    'LineStyle','none',...			    'Marker','o',...			    'ButtonDownFcn',...			    'vis_trajgui([],''line_down'')')];      if all(data.points(i).color == [0 0 0])      udata.new_marks=unique([udata.new_marks; (data.points(i).inds)']);    else      udata.all_marks=unique([udata.all_marks; (data.points(i).inds)']);    end  end  if ~isempty(udata.fig2)    set(0,'CurrentFigure',udata.fig2);    for j=1:length(udata.h2)      subplot(udata.h2(j));      ydata=getfield(get(udata.d2(j),'YData'),{data.points(i).inds});      udata.d_mark2(j).h=[udata.d_mark2(j).h;...                          plot(data.points(i).inds,ydata,...			       'Color',data.points(i).color,...			       'LineStyle','none',...			       'Marker','o',...			       'ButtonDownFcn',...			       'vis_trajgui([],''line_down'')')];    end  endend     set(0,'CurrentFigure',udata.sM_h);color=get(udata.tmp_patch(1),'FaceVertexCData');color=reshape(color,[size(color,1) 3]);for i=1:length(data.nodes)  color(data.nodes(i).ind,:)=data.nodes(i).color;endfor i=1:length(udata.tmp_patch);  set(udata.tmp_patch(i),'FaceVertexCData',color);endset(0,'CurrentFigure',old);set(udata.fig1,'UserData',udata);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function fuzzy_traj(trajStruct,arg); %function fuzzy_traj(sM_h,sM,sD,interval,arg)if isempty(arg)    if strcmp(trajStruct.lattice,'hexa')    udata.lattice='hexa';    udata.form=vis_patch('hexa');  else    data.lattice='rect';    udata.form=vis_patch('rect');  end    % interval=[1 size(trajStruct.primary_data,1)];    l=size(udata.form,1);  dim = size(trajStruct.primary_data,2);  udata.a_h=[findobj(get(trajStruct.figure,'Children'),'Tag','Uplane');...             findobj(get(trajStruct.figure,'Children'),'Tag','Cplane')];    udata.sM_h=trajStruct.figure;  udata.msize=trajStruct.msize;    %%%%%%%%%%%%%%%  %  % constructing patch that is drawn above every plane in map  %    nx = repmat(udata.form(:,1),1,prod(udata.msize));  ny = repmat(udata.form(:,2),1,prod(udata.msize));    x_c=reshape(repmat(1:udata.msize(2),l*udata.msize(1),1),l,prod(udata.msize));  y_c=repmat(repmat(1:udata.msize(1),l,1),1,udata.msize(2));    if strcmp(udata.lattice,'hexa')    t = find(~rem(y_c(1,:),2));    x_c(:,t)=x_c(:,t)+.5;  end    x_c=x_c+nx;  y_c=y_c+ny;    udata.orig_c=ones(prod(udata.msize),1)*[NaN NaN NaN];  colors=reshape(udata.orig_c,[1 size(udata.orig_c,1) 3]);  set(0,'CurrentFigure',trajStruct.figure);    %%%%%%%%%  % drawing     for i=1:length(udata.a_h);    subplot(udata.a_h(i));    v=caxis;    udata.patch_h(i) =patch(x_c,y_c,colors,'EdgeColor','none');    caxis(v);  end      udata.orig_x=get(udata.patch_h(1),'XData');  udata.orig_y=get(udata.patch_h(1),'YData');    %  if interval(1) < 1 | interval(2) > size(trajStruct.primary_data,1)  %    error('Invalid argument ''interval''.');  %  end    x=1:size(trajStruct.primary_data,1);  udata.fig1=figure;  set(udata.fig1,'KeyPressFcn',...                 'vis_trajgui([],''move_fuzzy'')');  for i=1:size(trajStruct.primary_data,2)    subplot(size(trajStruct.primary_data,2),1,i);    udata.h(i)=gca;    set(udata.h(1),'XTick',[]);    udata.d(i)=plot(x,trajStruct.primary_data(:,i));    l_x=1;    lims(1) = round(min(trajStruct.primary_data(:,i)));    lims(2) = round(max(trajStruct.primary_data(:,i)));    udata.l(i) = line([l_x l_x],lims,'Color','red','EraseMode','xor');  end    udata.l_x = l_x;    udata.interval=[1 size(trajStruct.bmus,2)];    tmp.fig1=udata.fig1;  %  [K,P] = estimate_kernels(sM,sD);  %  udata.K=K;  %  udata.P=P;  %  udata.codebook=sM.codebook;  %  udata.data=sD.data;  udata.bmus=trajStruct.bmus;  set(udata.fig1,'UserData',udata);  set(trajStruct.figure,'UserData',tmp);    draw_fuzzy(l_x);  return;endmove_fuzzy;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function draw_fuzzy(x)udata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');inds = find(udata.bmus(:,x));[row col] = ind2sub(udata.msize,inds);if strcmp(udata.lattice,'hexa')  t=find(~mod(row,2));  col(t)=col(t)+0.5;endcolor=udata.orig_c;color=reshape(color,[size(color,1) 3]);xdata=udata.orig_x;ydata=udata.orig_y;tmp= ones(size(xdata(:,1),1),1)*udata.bmus(inds,x)';color(inds,:) = ones(length(inds),1)*[0 0 0];xdata(:,inds) = udata.form(:,1)*ones(1,length(inds)).*tmp+ones(6,1)*col';ydata(:,inds) = udata.form(:,2)*ones(1,length(inds)).*tmp+ones(6,1)*row';set(udata.patch_h,'FaceVertexCData',color,'XData',xdata,'YData',ydata);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function move_fuzzy% moves pointer lines and draws fuzzy response.udata=get(gcf,'UserData');udata=get(udata.fig1,'UserData');switch get(gcf,'CurrentCharacter'); case {'<','>'}  key = get(gcf,'CurrentCharacter');  if key == '>'    if udata.l_x + 1 > udata.interval(2)       return;    end    l_x = udata.l_x + 1;  else    if udata.l_x - 1 < udata.interval(1)      return;    end    l_x = udata.l_x - 1;  end  draw_fuzzy(l_x);  set(udata.l,'XData',[l_x l_x]);  udata.l_x=l_x;  set(udata.fig1,'UserData',udata); otherwise  return;end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区精品久久久| 日产欧产美韩系列久久99| 国产东北露脸精品视频| 国产日韩欧美电影| 成人动漫一区二区在线| 国产精品久久久久久久久图文区 | 国产高清精品网站| 欧美激情一区在线| 91成人免费在线视频| 午夜精品福利在线| 久久亚洲捆绑美女| 91蝌蚪国产九色| 午夜精品久久久久久久| 日韩精品专区在线影院重磅| 韩国av一区二区| 亚洲品质自拍视频| 欧美精品一级二级| 成人性生交大片免费看在线播放| 国产精品不卡在线| 7777精品久久久大香线蕉| 久久精品国产77777蜜臀| 国产精品成人在线观看| 欧美日韩视频第一区| 国产毛片精品一区| 亚洲精品成人a在线观看| 日韩一区二区在线看| 成人h版在线观看| 日本午夜一本久久久综合| 久久久电影一区二区三区| 一本大道av一区二区在线播放| 日本不卡在线视频| 美女一区二区三区在线观看| 国产三级三级三级精品8ⅰ区| 色综合久久中文综合久久97| 蜜臀av一区二区三区| 亚洲图片激情小说| 2023国产精华国产精品| 91一区二区三区在线观看| 麻豆精品国产91久久久久久| 亚洲美女精品一区| 久久精品夜夜夜夜久久| 欧美性猛片xxxx免费看久爱| 国产精品资源在线观看| 亚洲v中文字幕| 亚洲欧洲av色图| 久久新电视剧免费观看| 欧美一区二区三区的| hitomi一区二区三区精品| 麻豆国产欧美日韩综合精品二区 | 亚洲激情中文1区| 欧美哺乳videos| 欧美三级资源在线| 99久久综合国产精品| 国产99精品国产| 精品亚洲成a人| 日韩成人午夜精品| 亚洲综合一二三区| 亚洲欧美日韩久久| 国产精品亲子伦对白| 久久婷婷久久一区二区三区| 欧美精品777| 欧美日韩视频专区在线播放| 色欧美片视频在线观看在线视频| 国产经典欧美精品| 精品午夜一区二区三区在线观看| 亚洲mv大片欧洲mv大片精品| 亚洲精品少妇30p| 亚洲同性同志一二三专区| 国产精品美女一区二区| 亚洲国产成人私人影院tom| 久久亚区不卡日本| 久久视频一区二区| 精品国产乱码久久久久久老虎 | 国产一区欧美日韩| 九色综合狠狠综合久久| 日本不卡视频在线| 美女国产一区二区| 精品一区二区三区久久| 麻豆精品视频在线观看免费 | 精品国产乱码久久久久久1区2区| 欧美久久久久免费| 日韩欧美综合在线| 精品日韩一区二区三区免费视频| 91精品国产乱码久久蜜臀| 欧美一区二区三区啪啪| 日韩精品资源二区在线| 精品国产91洋老外米糕| 久久亚洲一级片| 中文字幕电影一区| 亚洲欧美一区二区不卡| 亚洲欧美成aⅴ人在线观看| 亚洲欧美二区三区| 亚洲大片精品永久免费| 青青草97国产精品免费观看无弹窗版 | 中文字幕亚洲欧美在线不卡| 国产精品大尺度| 亚洲亚洲精品在线观看| 日本91福利区| 国产精品91一区二区| 成人a免费在线看| 欧美日韩在线综合| 欧美成人免费网站| 中文字幕欧美日韩一区| 亚洲一区二区三区激情| 欧美a一区二区| 国产黄人亚洲片| 色94色欧美sute亚洲13| 69久久99精品久久久久婷婷| 精品国产露脸精彩对白| 亚洲三级在线观看| 午夜av一区二区三区| 国产精品一区二区在线观看网站| aaa国产一区| 欧美日韩高清在线| 国产日韩欧美综合一区| 亚洲成a人v欧美综合天堂下载| 秋霞影院一区二区| 成人黄色在线网站| 欧美一区二区视频在线观看 | 日韩精品中文字幕一区二区三区 | 欧美一区三区四区| 中文字幕一区二区不卡| 视频在线观看一区二区三区| 国产高清精品在线| 欧美男女性生活在线直播观看| 久久亚洲一区二区三区明星换脸| 玉米视频成人免费看| 国产精品一区免费在线观看| 在线观看日韩一区| 国产欧美日韩不卡| 日本不卡一区二区三区高清视频| 成人精品免费视频| 日韩美女在线视频| 亚洲综合色在线| 国产成人一级电影| 欧美高清hd18日本| 中文字幕在线一区| 精品无码三级在线观看视频| 在线观看日韩精品| 亚洲视频一区二区免费在线观看 | 国产乱淫av一区二区三区| 欧美精品日日鲁夜夜添| 亚洲视频一区二区在线| 国产成人免费视频精品含羞草妖精| 欧美日韩不卡一区| 亚洲天堂福利av| 粉嫩一区二区三区在线看| 欧美大片在线观看一区| 亚洲1区2区3区4区| 欧美无砖砖区免费| 亚洲欧美日韩久久| www.亚洲免费av| 欧美激情一区二区三区在线| 免费黄网站欧美| 51精品久久久久久久蜜臀| 一级特黄大欧美久久久| 成人精品一区二区三区中文字幕| 精品电影一区二区三区| 男女男精品视频| 在线不卡欧美精品一区二区三区| 亚洲嫩草精品久久| 99精品热视频| 国产精品区一区二区三区| 国产精品原创巨作av| 亚洲精品一区二区三区精华液| 五月天激情小说综合| 欧美三级日韩三级| 亚洲风情在线资源站| 91精彩视频在线| 亚洲一级二级三级| 欧美日韩亚洲另类| 偷拍亚洲欧洲综合| 日韩西西人体444www| 精品伊人久久久久7777人| 日韩欧美成人一区二区| 久久国产福利国产秒拍| 26uuu国产电影一区二区| 国产一区二区导航在线播放| 久久日一线二线三线suv| 国产乱理伦片在线观看夜一区| 欧美精品一区二区三区四区| 国产精品一级二级三级| 久久久午夜精品| 成人激情午夜影院| 亚洲制服丝袜在线| 欧美少妇xxx| 麻豆精品视频在线| 日本一区二区综合亚洲| 91色乱码一区二区三区| 亚洲第一av色| 国产亚洲精品福利| 色综合一区二区三区| 亚洲福利一区二区三区| 日韩欧美国产麻豆| 成人三级在线视频| 亚洲国产精品一区二区www在线| 91精品国产综合久久久久| 国产高清久久久| 亚洲成人1区2区| 国产性色一区二区|