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

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

?? extra_funs.m

?? matlab仿真的文件包然后寫出其具體功能(至少要20個字)。盡量不要讓站長把時間都花
?? M
字號:
%extra_funs is composed of -
%common functions used in CtrlLAB.  These functions are accumulated in the same 
%module.  The functions are identified by an ID value nTask, followed by necessary
%arguments, given in arg_i.  Each of the function is commented with its function, 
%and extra explanation is given in the functions.
%
%   key=extra_funs(nTask,arg1,arg2,arg3,arg4,arg5)
%
%Details of the function and IDs are shown in the syntax
%
%The functions available in the module are
%
%  Sub 1: renew_axes -- delete and re-create new axes
%  Sub 2: prop_list -- handle lists which have the property 
%  Sub 3: taggle_onoff -- taggle on/off a certain property
%  Sub 4: menu_exclusive -- make the properties mutual exclusive
%  Sub 5: menu_value -- get the values in the list which is on
%  Sub 6: onoff -- convert '0/1 to 'on'/'off'
%  Sub 7: vec_len -- get the actual length of a TeX string
%  Sub 8: set_slider -- set the sliders on
%%%  Sub 9: err_msg_disp -- display a dialog box with error messages
%     (replaced by warndlg, this is no longer used)
%  Sub 10: drwframe -- draw a frame in a dialog box
%  Sub 11: is_on -- test a property is on or not
%  Sub 12: waitmsg -- displays a waiting dialog box
%  Sub 13: reveal_win-- called under err_msg_disp;
%

%Designed 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 for use with CtrlLAB 3.0.
%  Date: 16 October, 1999 $3.0
%------------------------------------------------------------

function key=extra_funs(nTask,arg1,arg2,arg3,arg4,arg5)
switch nTask
case 1
   %clearing existing axes  
   if nargin==1, renew_axes;
   elseif nargin==2, renew_axes(arg1); end   
case 2
   %finding the list of all objects in current figure
   %which have the given Type
   switch nargin
   case 1, key=prop_list('axes');
   case 2, key=prop_list(arg1);       
   case 3, key=prop_list(arg1,1);
   end
case 3 
   %taggle the handles of certain property
   taggle_onoff(arg1,arg2);
case 4
   %set the properties of certain object exclusive
   Property=arg2;
   if length(arg1)==0
      h_items_on=arg3; h_items_off=arg4;
   else
      uu=get(gcf,'UserData');     
      if isa(uu,'cell')
         h_items_on=uu{arg1}(arg3); h_items_off=uu{arg1}(arg4);
      else
         h_items_on=uu(arg3); h_items_off=uu(arg4);
      end
   end
   menu_exclusive(Property,h_items_on,h_items_off);
case 5
   %get the values of certain properties from the list
   Property=arg2; uu=get(gcf,'UserData');
   if isa(uu,'cell'), Handle=uu{arg1}(arg3);
   else, 
      if nargin==3, Handle=arg1; else, Handle=uu(arg3); end
   end
   if nargin<=4,
      %find the first matching item
      key=menu_value(Handle, Property);
   else,
      %find all the items which matches requests
      key=menu_value(Handle, Property,[]);
   end   
case 6
   %convert 1 and 0 into 'on' and 'off' respectively
   key=onoff(arg1);
case 7
   %get the actual length of a TeX string
   key=vec_len(arg1);
case 8
   %set horizontal and vertical sliders in the graphcs window
   set_slider(arg1);
case 9
   %show an error message dialog box
   if nargout==0, 
      if nargin==2, err_msg_disp(arg1);
      elseif nargin==3, err_msg_disp(arg1,arg2); end   
   else, key=err_msg_disp(arg1); end
case 10
   %draw a frame in graphics window
   p1=arg1; p2=arg2; 
   if nargin==4, vis=arg3; else, vis='on'; end
   key=drwframe(p1,p2,vis);
case 11, %test a property is on or not
   key=is_on(arg1,arg2);
case 12, %display a wait dialog box
   if nargout==0, waitmsg(arg1);
   else, key=waitmsg(arg1); end
case 13, reveal_win;   
end      

%-------------------------------------------------------------------------------
%Sub Function 1: renew_axes()
%  delete all the axes and then create new axes in the current window.  There is 
%  no input and output argument in the function call.
%-------------------------------------------------------------------------------
function renew_axes(arg1)
%remove all the axes on the graph window
delete(prop_list('axes'));
if nargin==0, 
   %if there is no size argument, then set it to maximum 
   arg1=[0.001,0.001,0.998,0.998]; 
end
%set new axis and define it to invisible mode
axes('Position',arg1);
axis([0,1,0,1]); set(gca,'Visible','off');

%---------------------------------------------------------------------------
%Sub Function 2: key=prop_list(Type,arg1) 
%  get all the handles of the specified property in the current window.  The 
%  handles are returned in key.
%---------------------------------------------------------------------------
function key=prop_list(Type,arg1)
if nargin==1, y=get(gcf,'Child');
else, y=get(gca,'Child'); end

ii=[];
for i=1:length(y)
   c=get(y(i),'Type');
   if strcmp(c,Type), ii=[ii,i]; end
end   
key=y(ii);

%---------------------------------------------------------------------------
%Sub Function 3: taggle_onoff(Handle,Property)
%  taggle on/off a certain property 'Property' of a handle 'Handle'.  If the 
%  property value is 0/1, it also tangle the values.
%---------------------------------------------------------------------------
function taggle_onoff(Handle,Property)
h_str=get(Handle,Property);
if isa(h_str,'double')
   if h_str==1, set(Handle,Property,1);
   else, set(Handle,Property,0); end
else
   if strcmp(h_str,'on'), set(Handle,Property,'off');
   else, set(Handle,Property,'on'); end
end   

%------------------------------------------------------------------------------
%Sub Function 4: make the properties in a object in the window mutual exclusive.
%  menu_exclusive(key,Property,items_on,items_off)
%  where key is the ID in userdata of the window.  Property is the actual 
%  property to be set or unset.  items_on and items_off are the lists of the 
%  arrays to be set or unset.  key0 is an extra argument which set properties 
%  to 1 or 0 instead.
%------------------------------------------------------------------------------
function menu_exclusive(Property,items_on,items_off)
h_str=get(items_on(1),Property);
if isa(h_str,'double')
   set(items_on,Property,1); set(items_off,Property,0); 
else
   set(items_on,Property,'on'); set(items_off,Property,'off'); 
end  

%------------------------------------------------------------------------------
%Sub Function 5: ret=menu_value(key, Property, vec)
%  get the values in the list which is on.  The vec is used to contain the list 
%  of menu items.  
%------------------------------------------------------------------------------
function ret=menu_value(hHandle,Property,arg1)
h_str=get(hHandle(1),Property); key=0; ret=[];
for k=1:length(hHandle)
   if isa(h_str,'double')
      if get(hHandle(k),Property)==1, 
         if nargin==3, ret=[ret;k];
         else, ret=k; break; end
      end
   else   
      if strcmp(get(hHandle(k),Property),'on'), 
         if nargin==3, ret=[ret;k];
         else, ret=k; break; end
      end
   end   
end

%-----------------------------------------------------------
%Sub Function 6: key=onoff(key0)
%  convert the 0 and 1 to 'on' or 'off'
%-----------------------------------------------------------
function key=onoff(key0)
%OnOff convert 0,1 value into strings
key='on';
if length(key0)>0, if key0==0, key='off'; end, end

%--------------------------------------------------------------------------
%Sub Function 7: n=vec_len(vec)
%  get the actual length of the string.  In the string, TeX commands can be 
%  contained.  The actual length is returned in n.
%--------------------------------------------------------------------------
function n=vec_len(vec)
vec_1=vec(find(vec~='^'&vec~='{'&vec~='}'));
ii=findstr(vec_1,'\times'); n=length(vec_1)-5*length(ii);
ii=findstr(vec_1,'\pm'); n=n-2*length(ii);

%------------------------------------------------------------------------------
%Sub Function 8: set_slider(key)
%  set the sliders of the horizontal and vertical axes after on set the sliders 
%  to new positions. Here 1 for horizontal axis and 2 for veryical axis.
%------------------------------------------------------------------------------
function set_slider(key)
vv=get(gco,'Value'); hFrame=get(gco,'UserData');
if key==1,
   set(gca,'XLim',[vv-0.5,vv+0.5]); set(hFrame,'XData',[0,1,1,0,0]+vv-0.5);
else
   set(gca,'YLim',[vv-0.5,vv+0.5]); set(hFrame,'YData',[0,0,1,1,0]+vv-0.5);
end

%--------------------------------------------------------------------------------
%Sub Function 9: err_msg_disp(strMsg)
%  display a dialog box with error messages, where the error information is given 
%  in strMsg.
%--------------------------------------------------------------------------------
function g_err=err_msg_disp(strMsg,kk)
h_err=findobj('Name','Error Message');
if length(h_err)==0
   screen=get(0,'ScreenSize');
   WinWidth=screen(3); WinHeight=screen(4); XYpt=[WinWidth WinHeight]/2;  
   nWidth=length(strMsg)*6.3; nHeight=0.15*WinHeight; [m,n]=size(strMsg);
   h_err=figure('Position',[XYpt(1)-nWidth/2,XYpt(2)-nHeight/2,nWidth+20,nHeight+(m-1)*20],...
      'NumberTitle','off','Name','Error Message',...
      'MenuBar','none','Color',[1;0;0],...
      'Tag','CtrlLABError','Resize','off');
   if nargin==2, set(gcf,'Tag','CtrlLABError_E'); end
   uicontrol('Style','Pushbutton','String','OK',...
      'Unit','pixel','Position',[nWidth/2-30,15,60,22],...
      'UserData',[],'Callback','extra_funs(13);')
else
   figure(h_err); delete(axes_list('axes'));   
end

yL=0.7; renew_axes;
for i=1:m
   display_str(0.08,yL,strMsg(i,:),[0,0,0]); yL=yL-0.1;
end

%---------------------------------------------------------------------------------
%Sub Function 10: hh=drwframe(p1,p2,vis)
% where p1, p2 are bottom-left and upper-right points of the frame to be drawn.  
% vis is for the visibility of the frame box.  hh returns the handle of the frame.
%---------------------------------------------------------------------------------
function hh=drwframe(p1,p2,vis)
hh=line([p1(1),p2(1),p2(1),p1(1),p1(1)],[p1(2),p1(2),p2(2),p2(2),p1(2)]);
set(hh,'Color',[0,0,0],'Visible',vis); 

%---------------------------------------------------------------------------------
%Sub Function 11: hh=is_on(Handle,Property)
% where Property is the property of Handle is tested, and the returned variable is 
% 1 if property is on, 0 if it is off.
%---------------------------------------------------------------------------------
function hh=is_on(Handle,Property)
h_onoff=get(Handle,Property);
hh=0;
if strcmp(h_onoff,'on'), hh=1; end

%-----------------------------------------------------------
%Sub Function 12: g_wait=waitmsg(nametx,XYpt)
% displays a dialog box which prompts the user to wait
%-----------------------------------------------------------
function g_wait=waitmsg(nametx,XYpt)
screen=get(0,'ScreenSize');
WinWidth=screen(3); WinHeight=screen(4); 

if nargin==1, XYpt=[WinWidth WinHeight]/2; end 
nWidth=length(nametx)*6; nHeight=0.05*WinHeight;
g_wait=figure('Position',[XYpt(1)-nWidth/2,XYpt(2)-nHeight/2,nWidth,nHeight],...
   'NumberTitle','off','Name','Please Wait',...
   'MenuBar','none','Color',[1,1,0],'Resize','off');
renew_axes; display_str(0.08,0.6,nametx,[0,0,0]);

%-----------------------------------------------------------
%Sub Function 13: reveal_win
% close the error msg window and reveal the previous window
%-----------------------------------------------------------
function reveal_win()
uu=get(gcf,'UserData'); close(gcf);
if length(uu)>0, set(uu,'Visible','on'); figure(uu); end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产高清不卡二三区| 精品国产免费人成在线观看| 91精品国产aⅴ一区二区| 国产亚洲视频系列| 午夜av一区二区| 99久久99久久精品免费观看| 欧美变态口味重另类| 亚洲一区二区三区四区不卡| 国产成人综合亚洲91猫咪| 7777精品伊人久久久大香线蕉经典版下载| 国产三级三级三级精品8ⅰ区| 亚洲成人在线观看视频| 成av人片一区二区| 久久综合资源网| 轻轻草成人在线| 欧美手机在线视频| 亚洲视频一区二区免费在线观看| 国产精品自拍网站| 欧美va亚洲va| 亚洲成人av电影| 欧美色精品天天在线观看视频| 中文字幕巨乱亚洲| 国产成人免费视频网站高清观看视频 | 日本免费在线视频不卡一不卡二| 99久久99久久精品国产片果冻| 中文字幕+乱码+中文字幕一区| 国产一区二区不卡| 久久午夜色播影院免费高清| 麻豆91免费看| 欧美成人vps| 久久激情五月婷婷| 精品免费视频.| 国产乱色国产精品免费视频| 久久综合九色综合欧美98| 极品尤物av久久免费看| 精品国产伦一区二区三区免费| 免费在线欧美视频| 日韩精品中文字幕一区| 久久97超碰国产精品超碰| 日韩欧美色综合| 国产精品1区二区.| 国产精品理伦片| 色视频欧美一区二区三区| 亚洲精品国产高清久久伦理二区| 色综合网色综合| 亚洲福利电影网| 欧美一区二区三区日韩视频| 久久精品99国产精品| 国产亚洲精品超碰| 99热99精品| 午夜欧美大尺度福利影院在线看| 欧美精品v日韩精品v韩国精品v| 奇米色777欧美一区二区| 久久久久久久久久久99999| 成人午夜视频免费看| 日韩理论电影院| 欧美日本视频在线| 国产一区二区不卡在线| 亚洲图片激情小说| 91精品婷婷国产综合久久 | 欧美一级日韩免费不卡| 国内欧美视频一区二区| 中文字幕一区二区三区蜜月| 一本久道久久综合中文字幕| 石原莉奈在线亚洲三区| 久久九九影视网| 91久久精品一区二区三区| 蜜桃视频一区二区三区在线观看 | 亚洲欧美激情小说另类| 欧美精品久久一区二区三区| 国产高清久久久| 亚洲影视在线播放| 国产日韩欧美精品一区| 欧美这里有精品| 国产一区二区三区四| 一区二区在线观看视频| 日韩精品一区二区三区三区免费 | 2021中文字幕一区亚洲| 色欧美片视频在线观看| 蜜臀av亚洲一区中文字幕| 自拍偷自拍亚洲精品播放| 日韩欧美国产一二三区| 在线看日本不卡| 丰满岳乱妇一区二区三区| 午夜精品久久久久| 最近中文字幕一区二区三区| 欧美精品一区二区三区四区| 欧美性受极品xxxx喷水| 成人午夜在线播放| 国产乱色国产精品免费视频| 日韩精品午夜视频| 夜夜精品浪潮av一区二区三区| 国产午夜精品久久久久久免费视| 欧美乱熟臀69xxxxxx| 色哟哟欧美精品| 国产91色综合久久免费分享| 毛片av中文字幕一区二区| 亚洲动漫第一页| 亚洲一二三四在线| 亚洲欧美另类小说视频| 国产精品人成在线观看免费| 欧美不卡一区二区| 91精品国产高清一区二区三区| 欧美做爰猛烈大尺度电影无法无天| 丁香六月综合激情| 国产精品456| 国产激情一区二区三区| 国内一区二区视频| 国产一区二区h| 国内成人精品2018免费看| 麻豆精品在线播放| 麻豆国产精品一区二区三区 | 欧美大片在线观看一区| 在线播放中文一区| 欧美精选在线播放| 欧美理论在线播放| 777亚洲妇女| 这里只有精品电影| 欧美一区二区三区日韩| 欧美一区二区三区成人| 欧美一级xxx| 精品国产凹凸成av人导航| 精品国产一区二区在线观看| 欧美大片一区二区三区| 26uuu另类欧美亚洲曰本| 久久久精品天堂| 国产精品福利一区| 一区二区三区四区不卡在线| 一区二区三区资源| 亚洲国产sm捆绑调教视频| 日日夜夜一区二区| 极品美女销魂一区二区三区免费| 久久爱www久久做| 国产成人福利片| 91麻豆免费观看| 欧美影院一区二区三区| 欧美一级淫片007| 久久久久久久性| 亚洲激情综合网| 久久精品理论片| gogo大胆日本视频一区| 欧美日韩精品三区| 久久久久久97三级| 亚洲少妇30p| 麻豆专区一区二区三区四区五区| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲高清久久久| 黄页网站大全一区二区| 99精品国产热久久91蜜凸| 欧美另类一区二区三区| 国产午夜三级一区二区三| 一区二区三区国产精华| 久草热8精品视频在线观看| 成人黄色电影在线| 欧美美女一区二区在线观看| 久久久另类综合| 亚洲国产aⅴ成人精品无吗| 国产精品一二三四区| 欧美午夜理伦三级在线观看| 精品人在线二区三区| 亚洲男人天堂一区| 国产在线不卡视频| 色哟哟欧美精品| 久久精品日产第一区二区三区高清版 | 国产精品综合一区二区| 欧美日免费三级在线| 久久久久国产精品麻豆ai换脸 | 亚洲麻豆国产自偷在线| 激情综合亚洲精品| 精品视频免费在线| 中文字幕精品一区| 国内精品在线播放| 91精品国产综合久久福利| 亚洲免费毛片网站| 床上的激情91.| 337p日本欧洲亚洲大胆精品| 亚洲一区二区三区视频在线播放| 成人小视频在线| 久久精品综合网| 国产制服丝袜一区| 精品精品国产高清a毛片牛牛| 性久久久久久久久久久久| 91亚洲永久精品| 日韩美女精品在线| 成人av电影免费观看| 国产日韩欧美精品一区| 黑人巨大精品欧美一区| 日韩午夜激情视频| 免费看精品久久片| 91精品蜜臀在线一区尤物| 亚洲成人黄色影院| 欧美在线观看一区| 亚洲图片一区二区| 精品婷婷伊人一区三区三| 亚洲最快最全在线视频| 色婷婷综合久久久中文字幕| 成人欧美一区二区三区白人| 成人av在线一区二区| 中文字幕av免费专区久久| 高清不卡一二三区|