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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? legd_proc.m

?? matlab仿真的文件包然后寫出其具體功能(至少要20個字)。盡量不要讓站長把時(shí)間都花
?? M
?? 第 1 頁 / 共 2 頁
字號:
%legd_proc processing legends on a graphics window.
%
%   i_Legends=legd_proc(nTask,arg1)
%where 
%   nTask -- the code for legend processing.  Details can be found in the comments 
%            within the function
%   arg1 -- extra arguments used for certain nTask
%   i_Legends -- when used for get_legend, return handle
%
%The functions available in the module are
%
%  get_exact_point -- get the exact position
%  get_legnd -- get the handle of the specified object
%  set_text_prop -- set the properties of the text object
%  set_color_prop -- set the color of the text/line object
%  set_line_prop -- set the properties of the line object
%  plt_range_box -- display the plot range parameters dialog box
%

%Copyright (c) 1997-1999 by Professor Dingyu Xue
%School of Information Science and Engineering, Northeastern University
%Shenyang 110006, P R China
%Email: xue_dy@hotmail.com
%
%This module is used either with Graf_Tool or CtrlLAB.
%-----------------------------------------------------

function i_Legends=legd_proc(nTask,arg1)

h_legends=findobj('Tag','CtrlLABLegends');
if length(h_legends)==0,
   uu=get(gcf,'UserData'); g_graphs=gcf;
else
   uu_1=get(gcf,'UserData'); g_graphs=uu_1{2};
end

switch nTask
case 0, i_Legends=get_legnd(arg1);    
case 1, %enable the legend editting box to accept new legends
   [x,y]=ginput(1); set(gcf,'Units','normalized'); 
   xx=get(uu{2}(1),'Position'); xx(1:2)=get(gcf,'CurrentPoint'); 
   set(uu{2}(1),'Position',xx,'Visible','on','UserData',[x,y]);
case 2, %editting legends, add the current legend to edit box
   iLegends=get_legnd(nTask);
   if length(iLegends)>0
      set(uu{2}(1),'Visible','on'); str=get(iLegends,'String');
      xx=get(uu{2}(1),'Position'); xx(1:2)=get(gcf,'CurrentPoint'); 
      set(uu{2}(1),'String',str,'Position',xx); 
      uu{2}(3)=iLegends; set(g_graphs,'UserData',uu);
   end
case 3, %set legend moving enable functions
   iLegends=get_legnd(nTask);
   if length(iLegends)>0
      set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(11);',...
         'WindowButtonDownFcn','legd_proc(12);');
      uu{2}(3)=iLegends; set(g_graphs,'UserData',uu);
   end
case 4, %delete the legends to be selected
   iLegends=get_legnd(nTask);
   if length(iLegends)>0, delete(iLegends); end
case 5, %draw a line
   [x,y,button]=ginput(1);
   set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(19);',...
      'WindowButtonDownFcn','legd_proc(20,1);');
   h=line([x,x],[y,y]); uu{4}=[x,y,h]; set(gcf,'UserData',uu);
case {6,7}, %modify the properties of legends
   gg=get(h_legends,'UserData'); uu=get(gg{2},'UserData');
   if nTask==6, kk=uu{2}(3); 
   else, figure(gg{2}); kk=get(gca,'Children'); end
   for i=1:length(kk)
      if strcmp(get(kk(i),'Type'),'text') 
         if arg1==1, set_text_prop(kk(i)); end
      elseif (length(get(kk(i),'XData'))<=5&arg1==1)|(length(get(kk(i),'XData'))>5&arg1==2)   
         set_line_prop(kk(i));
      end   
      set_color_prop(kk(i));
   end
   close(h_legends);   
case 8, %draw arrows
   [x,y,button]=ginput(1);
   set(gcf,'Units','normalized','WindowButtonMotionFcn','legd_proc(19);',...
      'WindowButtonDownFcn','legd_proc(20,2);');
   h=line([x,x],[y,y]); uu{4}=[x,y,h]; set(gcf,'UserData',uu);
case 9, %delete all the legends
   close(h_legends); figure(g_graphs); hh=extra_funs(2,'axes'); ii=[];
   for i=1:length(hh)
      kk=get(hh(i),'Children'); 
      for j=1:length(kk)
         if strcmp(get(kk(j),'Type'),'line')
            if length(get(kk(j),'XData'))<=5, delete(kk(j)); end
         else, delete(kk(j)); end
      end   
   end   
case 10, %update legends
   hLegd=uu{2}(1); str=get(hLegd(1),'String'); set(hLegd(1),'Visible','off');
   if length(str)>0 & uu{2}(2)==1
      xy=get(uu{2}(1),'UserData'); x=xy(1); y=xy(2); 
      nCol=get(gca,'XColor'); [x,hh]=display_str(x,y,str,nCol);
   elseif uu{2}(2)==2, set(uu{2}(3),'String',str); end;
case 11, %move the legends to new position
   iLegends=uu{2}(3); [x,y]=get_exact_point;
   if strcmp(get(iLegends,'type'),'text')
      Pos=get(iLegends,'Position'); Pos(1)=x; Pos(2)=y; set(iLegends,'Position',Pos);
   else
      x0=get(iLegends,'XData'); y0=get(iLegends,'YData'); xx=get(gco,'UserData');
      dx=x-xx(1); dy=y-xx(2);
      set(iLegends,'XData',x0+dx,'YData',y0+dy); set(iLegends,'UserData',[x,y]);
   end   
case 12, %stop legend moving facilities
   set(g_graphs,'Units','pixels','WindowButtonMotionFcn','','WindowButtonDownFcn','');
case {13,22,30}, %show property dialog box     
   switch nTask
   case 13, iLegends=get_legnd(4);
   case 22, iLegends=get_legnd(5); 
   case 30, iLegends=get_legnd(6);
   end
   if length(iLegends)==0, break; end
   uu{2}(3)=iLegends(1); set(g_graphs,'UserData',uu);
   if length(iLegends)>0,
      g_type=get(iLegends(1),'Type');
      if strcmp(g_type,'line'), keyLine=1; keyText=0;   
      else, keyLine=0; keyText=1; end
   end   
   if length(h_legends)==0 & length(iLegends)>0
      h_legends=figure('Units','normalized','Position',[0.34 0.325 0.4125 0.275],...
         'NumberTitle','off','Name','Legend/Curve Properties',...
         'MenuBar','none','Color',0.8*[1,1,1],'Tag','CtrlLABLegends','Resize','off');         
      extra_funs(1);
      hFF(1)=uicontrol('Style','Pushbutton','String','Change',...
         'Units','normalized','Position',[0.8,0.8,0.18,0.14],'Callback','legd_proc(6,1);');
      hFF(9)=uicontrol('Style','Pushbutton','String','Change All',...
         'Units','normalized','Position',[0.53,0.8,0.25,0.14],'Callback','legd_proc(7,1);');
      if nTask==22
         set(hFF(1),'CallBack','legd_proc(6,2);'); set(hFF(9),'CallBack','legd_proc(7,2);');
      end
      hFF(10)=uicontrol('Style','Pushbutton','String','Delete All',...
         'Units','normalized','Position',[0.53,0.63,0.25,0.14],'Callback','legd_proc(9);');
      hFF(2)=uicontrol('Style','Pushbutton','String','Color','UserData',[],...
         'Units','normalized','Position',[0.8,0.63,0.18,0.14],'Callback','legd_proc(14);');
      hFF(3)=uicontrol('Style','Pushbutton','String','Font','UserData',[],...
         'Units','normalized','Position',[0.8,0.46,0.18,0.14],'Callback','legd_proc(15);',...
         'Enable',extra_funs(6,keyText));
      hFF(4)=uicontrol('Style','Pushbutton','String','Cancel',...
         'Units','normalized','Position',[0.8,0.29,0.18,0.14],'Callback','delete(gcf);');
      hFF(11)=uicontrol('Style','Pushbutton','String','Help',...
         'Units','normalized','Position',[0.8,0.12,0.18,0.14],'CallBack','clab_help(21);');
      [xL,hFF(5)]=display_str(0.04,0.93,'Select Line Type',[0,0,0],extra_funs(6,keyLine),9);
      hFF(6)=uicontrol('Style','Popupmenu','String',['Solid Line |Dash Line |Dotted Line |Dash-dotted Line'],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'Units','normalized','Position',[0.07,0.73,0.35,0.13],...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(16);');
      [xL,hFF(7)]=display_str(0.04,0.41,'Select Line Width',[0,0,0],extra_funs(6,keyLine),9);
      hFF(8)=uicontrol('Style','Popupmenu','String',['Thinner |Thicker'],...
         'Units','normalized','Position',[0.07,0.23,0.35,0.13],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(17);');
      strMarker=str2mat('+ sign','o sign','* sign','. sign','x sign',...
         'square','diamond','v','^ sign','> sign','< sign',...
         'pentagram','hexagram','remove marker');
      [xL,hFF(14)]=display_str(0.04,0.67,'Select Marker Style',...
         [0,0,0],extra_funs(6,keyLine),9);
      hFF(15)=uicontrol('Style','Popupmenu','String',strMarker,...
         'Units','normalized','Position',[0.07,0.48,0.35,0.13],...
         'Value',1,'UserData',[],'Visible',extra_funs(6,keyLine),...
         'BackgroundColor',[1,1,1],'CallBack','legd_proc(21);');
      [x,hFF(12)]=display_str(0.04,0.10,'Angle for Rotation',[0,0,0],extra_funs(6,keyText),9);
      if keyText==1, strAngle=get(uu{2}(3),'Rotation'); 
      else, strAngle=0; end
      hFF(13)=uicontrol('Style','Edit','String',num2str(strAngle),...
         'Units','normalized','Position',[0.42,0.05,0.18,0.12],...
         'HorizontalAlignment','left','BackgroundColor',[1,1,1],'Visible',extra_funs(6,keyText));
      set(h_legends,'UserData',{hFF,g_graphs}); 
   else, figure(h_legends); end
case 14, %select new color
   gg=get(h_legends,'UserData'); nCol=uisetcolor; set(gg{1}(2),'UserData',nCol);
case 15, %select a new font
   gg=get(h_legends,'UserData'); hFont=uisetfont; set(gg{1}(3),'UserData',hFont);
case 16, %set line style
   gg=get(h_legends,'UserData'); set(gg{1}(6),'UserData',1);
case 17, %set line width
   gg=get(h_legends,'UserData'); set(gg{1}(8),'UserData',1);
case 18, %show cursor
   [x0,y0,but0]=get_legnd(1); 
   if but0==1,
      x=get(gco,'XData'); y=get(gco,'YData');
      cc=(x-x0).^2+(y-y0).^2; [cc,i]=min(cc); ux=get(gco,'UserData'); 
      if length(ux)==0
         x0=x(i); y0=y(i); str=[' (' num2str(x0), ',', num2str(y0) ')'];
      else
         uu=get(gcf,'UserData'); iplot=uu{4};
         switch iplot
         case {2,4}, x0=x(i); y0=y(i); str=['  \omega=' num2str(ux(i))];
         case 5, x0=x(i); y0=y(i); str=['  K=' num2str(ux(i))];
         otherwise, x0=x(i); y0=y(i); str=[' (' num2str(x0), ',', num2str(y0) ')'];
         end            
      end   
      h1=line(x0,y0); set(h1,'Marker','o'); h2=text(x0,y0,str); 
      set([h1,h2],'Color',get(gca,'XColor'));
   end
case 19, %set line drawing
   uu=get(g_graphs,'UserData'); x=uu{4}(1); y=uu{4}(2);
   uu=get(gcf,'UserData'); [x1,y1]=get_exact_point;
   set(uu{4}(3),'XData',[uu{4}(1),x1],'YData',[uu{4}(2),y1]);
case 20, %stop line drawing
   set(g_graphs,'WindowButtonMotionFcn','','WindowButtonDownFcn','');
   if arg1==2    
      uu=get(gcf,'UserData'); [x_e,y_e]=get_exact_point;
      nXAxis=get(gca,'XLim'); nYAxis=get(gca,'YLim');
      x=[uu{4}(1),x_e]; y=[uu{4}(2),y_e]; p1=pi/9; w=0.02; 
      x1=(x-nXAxis(1))/diff(nXAxis); y1=(y-nYAxis(1))/diff(nYAxis);
      theta=atan2(diff(y1),diff(x1)); theta=[theta+p1,theta-p1];
      x2=x1(2)-w*cos(theta); y2=y1(2)-w*sin(theta);
      x2=nXAxis(1)+x2*diff(nXAxis); y2=nYAxis(1)+y2*diff(nYAxis);
      xx1=[x, x2(1) x(2),x2(2)]; yy1=[y, y2(1),y(2),y2(2)]; 
      set(uu{4}(3),'XData',xx1,'YData',yy1);
   end
   set(uu{4}(3),'Color',get(gca,'XColor')); set(g_graphs,'Units','pixels');
case 21, gg=get(h_legends,'UserData'); set(gg{1}(15),'UserData',1);
case 23,
   iLegends=get_legnd(4);
   if length(iLegends)>0, nCol=uisetcolor; set(iLegends,'Color',nCol); end   
case 24, %call sub function to show a dialog box for plot range
   plt_range_box;
case 25
   g_main=findobj('Tag','CtrlLABMain'); uu0=get(gcf,'UserData'); nPlot=uu0{4};
   hRng=uu0{2}; uu=get(g_main,'UserData');
   x1=eval(get(hRng(2),'String')); x2=eval(get(hRng(4),'String'));
   n_points=eval(get(hRng(6),'String')); key_sim=0;
   if strcmp(get(hRng(7),'Enable'),'on'), key_sim=get(hRng(7),'Value'); end
   key_dly=0;
   if strcmp(get(hRng(8),'Enable'),'on'), key_dly=get(hRng(8),'Value'); end
   close(gcf); uu{10}=[x1,x2,n_points,key_sim,nPlot,key_dly]; 
   set(g_main,'UserData',uu); sys_analysis(nPlot);
case 26,
   iLegends=get_legnd(6);
   if length(iLegends)>0, nCol=uisetcolor; set(iLegends,'Color',nCol); end   
end
   
if nTask~=25

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人综合网站| 久久精品人人爽人人爽| 一区二区三区资源| 欧美少妇性性性| 免费精品视频在线| 欧美tickling挠脚心丨vk| 久久99精品久久久久久动态图| 欧美电影免费观看高清完整版| 国产在线国偷精品产拍免费yy| 欧美极品另类videosde| 91同城在线观看| 日精品一区二区三区| 精品国精品国产| 国产米奇在线777精品观看| 欧美不卡一二三| 国产精品1区2区| 国产精品成人一区二区艾草| 91免费观看视频在线| 亚洲一区二区在线免费观看视频| 色综合久久六月婷婷中文字幕| 一区二区三区在线免费视频| 在线观看免费亚洲| 亚洲成人福利片| 日韩一区二区视频在线观看| 日韩福利电影在线观看| 777精品伊人久久久久大香线蕉| 三级一区在线视频先锋| 欧美一区二区啪啪| 日本91福利区| 久久久久国产精品人| 91亚洲男人天堂| 亚洲黄一区二区三区| 91精品国产综合久久福利 | 久久久久久电影| 成人激情免费电影网址| 一区二区三区中文在线| 884aa四虎影成人精品一区| 国产乱色国产精品免费视频| 亚洲视频综合在线| 国产一本一道久久香蕉| 亚洲精品在线免费观看视频| av一本久道久久综合久久鬼色| 亚洲欧美日韩在线| 欧美视频日韩视频在线观看| 国内外精品视频| 一区二区三区在线观看动漫| 欧美一区二区三区系列电影| 国产成人免费在线视频| 亚洲一区二区三区在线| 精品国产污污免费网站入口 | 精品视频一区三区九区| 精品中文字幕一区二区| 亚洲人123区| 2021中文字幕一区亚洲| 在线观看三级视频欧美| 国产剧情在线观看一区二区 | 国产亚洲短视频| 91美女片黄在线观看| 日韩高清不卡在线| 亚洲欧美在线高清| 天堂成人免费av电影一区| 欧美电视剧免费观看| 91蜜桃免费观看视频| 国内精品伊人久久久久av影院| 亚洲三级免费电影| 久久久久综合网| 欧美精品一卡二卡| 色综合久久中文字幕综合网| 国产一区二区免费在线| 五月天丁香久久| 亚洲精品免费电影| 国产精品福利一区| 久久网站热最新地址| 4438亚洲最大| 欧美吻胸吃奶大尺度电影| 99亚偷拍自图区亚洲| 国产一区视频在线看| 偷窥少妇高潮呻吟av久久免费| 综合在线观看色| 中文字幕精品在线不卡| www久久精品| 日韩欧美久久一区| 91精品国产综合久久久久久久 | 99精品桃花视频在线观看| 国内精品写真在线观看| 日韩电影免费一区| 午夜伦欧美伦电影理论片| 一区二区高清在线| 亚洲天堂av老司机| 亚洲天堂2016| 亚洲色图丝袜美腿| 一色桃子久久精品亚洲| 国产精品国产三级国产a| 国产欧美视频一区二区三区| 精品国产青草久久久久福利| 日韩欧美国产小视频| 欧美一区二区三区四区五区| 欧美一区二区人人喊爽| 宅男噜噜噜66一区二区66| 欧美日本不卡视频| 欧美一三区三区四区免费在线看| 欧美这里有精品| 欧美日韩中文另类| 91麻豆精品国产无毒不卡在线观看| 在线观看不卡一区| 欧美丰满美乳xxx高潮www| 欧美精品久久一区二区三区| 91精品国产乱| 欧美不卡一区二区三区四区| 久久综合九色综合欧美98| 26uuu精品一区二区| 国产欧美在线观看一区| 综合久久久久综合| 亚洲欧美日韩一区二区| 亚洲国产日韩在线一区模特| 图片区小说区区亚洲影院| 青青草97国产精品免费观看 | 国产精品久久毛片av大全日韩| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲一区二区三区四区五区黄 | 欧美精品一区二区三区在线| 欧美va在线播放| 久久综合色一综合色88| 中文字幕乱码日本亚洲一区二区 | 五月婷婷久久综合| 久久精品国产澳门| 成人性色生活片| 在线免费精品视频| 欧美成人精品1314www| 国产精品亲子伦对白| 亚洲一区二区美女| 国产资源在线一区| 91猫先生在线| 日韩三级在线免费观看| 国产精品麻豆久久久| 五月开心婷婷久久| 国产a视频精品免费观看| 中文字幕一区二区在线播放| 中文字幕亚洲区| 日本aⅴ亚洲精品中文乱码| 国产成a人亚洲精品| 欧美在线视频日韩| 久久久久9999亚洲精品| 亚洲男人电影天堂| 国产一区在线观看视频| 在线精品视频免费观看| 精品免费日韩av| 一区二区三区丝袜| 国产在线精品一区二区三区不卡| 99久久精品一区| 精品国产成人系列| 又紧又大又爽精品一区二区| 激情都市一区二区| 欧美日韩一级二级三级| 国产日韩欧美a| 美女网站在线免费欧美精品| 91老师国产黑色丝袜在线| 26uuu国产一区二区三区| 亚洲电影一区二区| 波多野结衣视频一区| 日韩欧美亚洲国产精品字幕久久久| 一区二区三区欧美久久| 国产成a人无v码亚洲福利| 日韩欧美一区在线| 亚洲图片欧美色图| 91一区二区在线观看| 久久久777精品电影网影网 | 亚洲精品一区二区三区福利| 一区二区三区成人| 丁香啪啪综合成人亚洲小说 | 成人精品小蝌蚪| 亚洲精品一区二区三区精华液 | 日韩女优视频免费观看| 亚洲国产精品久久一线不卡| 97精品电影院| 国产精品国产自产拍高清av王其| 国产一区二区三区黄视频| 欧美丰满少妇xxxbbb| 亚洲欧美成人一区二区三区| 国产99久久久久| 欧美成人a视频| 日本欧美加勒比视频| 欧美日韩亚洲国产综合| 一区二区三区四区乱视频| 色av一区二区| 亚洲自拍偷拍欧美| 欧美三区在线观看| 亚洲bt欧美bt精品| 色吧成人激情小说| 亚洲 欧美综合在线网络| 欧美成人一级视频| av影院午夜一区| 偷拍亚洲欧洲综合| 久久久美女毛片| 91黄色免费版| 麻豆成人91精品二区三区| 国产精品乱码一区二三区小蝌蚪| 91福利小视频| 国内外精品视频| 一个色综合网站|