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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? eyesampl.m

?? 3G源碼Mfiles有很詳實(shí)的內(nèi)容哦適合3g初學(xué)者
?? M
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
  mod_time = rem((t - timeRange(2))/timeRange(1), 1)...
      * timeRange(1) + timeRange(2);
  last_time = x(3);
  x(3) = mod_time;
  
  if (mod_time < last_time)
    if storeLength <= 0
      storeLength = 1;
    end
    %hit the boundary of switching point.
    pre_point = mod_time + timeRange(1);
    aft_point = mod_time;
    ind = [];
    if sub_han(len_u+2) >= storeLength
      ind = find( isnan( sub_han( len_u + 3:length(sub_han) ) ) );
      sub_han(len_u+3:ind(max(1, length(ind)-storeLength))) = [];
      sub_han(len_u+2) = sum( isnan( sub_han( len_u + 3:length(sub_han) ) ) );
    end;
    
    sub_han(len_u + 2) = sub_han(len_u + 2) + 1;
    sub_han = [sub_han   t   NaN   t];
    set(handles(1),'UserData',sub_han);
    
    for i = 1 : len_u
      if sub_han(i) 
	tmp_x = get(sub_han(i), 'XData');
	tmp_y = get(sub_han(i), 'YData');
	if ~isempty(ind)
	  tmp_x(1:ind(max(1, length(ind)-storeLength))-len_u-2) = [];
	  tmp_y(1:ind(max(1, length(ind)-storeLength))-len_u-2) = [];
	end;
	set(sub_han(i), 'XData',[tmp_x, pre_point, NaN, aft_point],...
	    'YData',[tmp_y, u(i),      NaN, u(i)]);
      end;
    end;
    
  else
    set(handles(1), 'UserData',[get(handles(1), 'UserData') t])
    for i = 1 : len_u
      if sub_han(i)
	set(sub_han(i), 'XData', [get(sub_han(i), 'XData'), mod_time], ...
	    'YData', [get(sub_han(i), 'YData'), u(i)]);
      end;
    end;
  end;
  
  if triggered & sub_han(len_u) & (t > 0)
    if storeLength <= 0
      storeLength = 1;
    end
    tmp_x = get(sub_han(len_u + 1), 'XData');
    tmp_y = get(sub_han(len_u + 1), 'YData');
    if length(tmp_x) > 3*storeLength
      tmp_x(1:3) = [];
      tmp_y(1:3) = [];
    end;
    tmp_x = [timeRange(3), timeRange(3)];
    tmp_y = [get(handles(1), 'YLim')];
    set(sub_han(len_u + 1), 'XData', tmp_x, 'YData', tmp_y);
  end;
end;

if handles(2) & triggered & (t>0) & scatter_plot
  if storeLength <= 0
    storeLength = 1;
  end    
  
  %scatter plot
  sub_han = get(handles(2), 'UserData');
  if changed_boundary
    set(handles(2), 'Ylim', boundary);
    if len_u == 2
      set(handles(2), 'Xlim', boundary);
    end;
  end;
  
  len_h_userdata = length(sub_han);
  changed_line_type = 0;
  if (length(scatterLine) ~= len_h_userdata - len_u)
    changed_line_type = 1;
  elseif max(abs(scatterLine) ~= sub_han(len_u+1:len_h_userdata))
    changed_line_type = 1;
  end;
  
  if changed_line_type
    lines = scatterLine;
    for i = 1 : len_u
      [col, lines] = strtok(lines, '/');
      if length(col) <= 1
	col = 'k-';
      end;
      if ~((i == 2) & (len_u == 2))
	[linest, markst] = LineTypeSeparation(col(2:length(col)));
	set(sub_han(i), 'Color',col(1),...
	    'LineStyle',linest,...
	    'Marker', markst);
	if col(2) == '.'
	  set(sub_han(i), 'MarkerSize', 10);
	else
	  set(sub_han(i), 'MarkerSize', 6);
	end;
      end;
    end;
    set(handles(2), 'UserData',[sub_han(1:len_u), abs(scatterLine)]);
  end;
  
  if len_u == 2
    tmp_x = get(sub_han(1), 'XData');
    tmp_y = get(sub_han(1), 'YData');
    if length(tmp_x) > 2*storeLength
      tmp_x(1:2) = [];
      tmp_y(1:2) = [];
    end;
    tmp_x = [tmp_x, u(1), NaN];
    tmp_y = [tmp_y, u(2), NaN];
    set(sub_han(1), 'XData', tmp_x, 'YData', tmp_y);
  else
    for i = 1 : len_u
      tmp_x = get(sub_han(i), 'XData');
      tmp_y = get(sub_han(i), 'YData');
      if length(tmp_x) > 2*storeLength
	tmp_x(1:2) = [];
	tmp_y(1:2) = [];
      end;
      tmp_x = [tmp_x, 0, NaN];
      tmp_y = [tmp_y, u(i), NaN];
      set(sub_han(i), 'XData', tmp_x, 'YData', tmp_y);
    end;
  end;
end;
  
sys = x;

% end mdlUpdate

%
%=============================================================================
% LocalFigureDeleteFcn
% This is the Graph figure window's DeleteFcn.  The figure window is
% being deleted, update the Graph block's UserData to reflect the change.
%=============================================================================
%
function LocalFigureDeleteFcn

%
% Get the block associated with this figure and set it's figure to -1
%
SetEyesamplFigure(gcbh, get_param(gcbh,'userdata'));
close(gcbf);

% end LocalFigureDeleteFcn

%
%=============================================================================
% LocalBlockStartFcn
% Function that is called when the simulation starts.  Initialize the
% Graph scope figure.
%=============================================================================
%
function LocalBlockStartFcn

%
% get the figure associated with this block, create a figure if it doesn't
% exist
%
figureHandle = GetEyesamplFigure(gcbh);
if ~ishandle(figureHandle),
  figureHandle = CreateEyesamplFigure;
end

ud = get(figureHandle,'UserData');
set(figureHandle,'UserData',ud);

% end LocalBlockStartFcn

%
%=============================================================================
% LocalBlockStopFcn
% At the end of the simulation, set the line's X and Y data to contain
% the complete set of points that were acquire during the simulation.
% Recall that during the simulation, the lines are only small segments from
% the last time step to the current one.
%=============================================================================
%
function LocalBlockStopFcn

%
% Locate the figure window associated with this block. If it's not a valid
% handle (it may have been closed by the user), then return.
%
figureHandle=GetEyesamplFigure(gcbh);
if ishandle(figureHandle),
  %
  % Get UserData of the figure.
  %
  ud = get(figureHandle,'UserData');
  % Currently do nothing in LocalBlockStopFcn

end

% end LocalBlockStopFcn

%
%=============================================================================
% LocalBlockNameChangeFcn
% Function that handles name changes on the Bit-Error Meter.
%=============================================================================
%
function LocalBlockNameChangeFcn

%
% the figure handle is stored in the block's UserData
%
figureHandle = GetEyesamplFigure(gcbh);
if ishandle(figureHandle),
  set(figureHandle,'Name',get_param(gcbh,'Name'));
end

% end LocalBlockNameChangeFcn

%
%=============================================================================
% LocalBlockLoadCopyFcn
% Function that initializes the Bit-Error Meter's UserData when it is
% loaded from an mdl file and when it is copied.
%=============================================================================
%
function LocalBlockLoadCopyFcn

SetEyesamplFigure(gcbh,[]);

% end LocalBlockLoadCopyFcn

%
%=============================================================================
% LocalBlockDeleteFcn
% Function that handles the Bit-Error Meter's deletion from a block
% diagram.
%=============================================================================
%
function LocalBlockDeleteFcn

%
% the figure handle is stored in the block's UserData
%
figureHandle = GetEyesamplFigure(gcbh);
if ishandle(figureHandle),
  delete(figureHandle);
  SetEyesamplFigure(gcbh,[]);
end

% end LocalBlockDeleteFcn

%
%=============================================================================
% GetEyesamplFigure
% Retrieves the figure window associated with this S-function Bit-Error Meter
% from the block's parent subsystem's UserData.
%=============================================================================
%
function figureHandle=GetEyesamplFigure(block)

if strcmp(get_param(block,'BlockType'),'S-Function'),
  block=get_param(block,'Parent');
end

ud = get_param(block,'UserData');
if ishandle(ud)
  figureHandle = ud;
else
  if isempty(ud)
    ud.figureHandle = [];
    set_param(block,'UserData', ud);
  end;  
  figureHandle = ud.figureHandle;
end;

if isempty(figureHandle),
  figureHandle = -1;
end

% end GetEyesamplFigure

%
%=============================================================================
% SetEyesamplFigure
% Stores the figure window associated with this S-function Bit-Error Meter
% in the block's parent subsystem's UserData.
%=============================================================================
%
function SetEyesamplFigure(block,figureHandle)

if strcmp(get_param(block,'BlockType'),'S-Function'),
  block=get_param(block,'Parent');
end

ud = get_param(block,'UserData');
ud.figureHandle = figureHandle;
set_param(block,'UserData',ud);

% end SetEyesamplFigure

%
%=============================================================================
% CreateEyesamplFigure
% Creates the figure window associated with this S-function Bit-Error Meter.
%=============================================================================
%
function figureHandle=CreateEyesamplFigure

%
% create the figure and the axes
%

a = allchild(0);
b = findobj(a, 'Name', get_param(gcbh,'Name'));
if isempty(b)
   figureHandle = figure(...
      'Units',        'points',...
      'Position',     [10 10 360 350],...
      'NumberTitle',  'off',...
      'Name',         get_param(gcbh,'Name'),...
      'Visible',      'off', ...      
      'IntegerHandle','off',...
      'DeleteFcn',    'eyesampl([],[],[],''DeleteFigure'')'...
      );
else
  figureHandle = b;
end;
set(0, 'CurrentFigure', figureHandle);

%
% store the block's handle in the figure's UserData
%
ud.Block = gcbh;
%ud.figureHandle = figureHandle;

%
% squirrel the figure handle away in the current block, and put the
% various handles into the figure's UserData
%
SetEyesamplFigure(gcbh,figureHandle);
set(figureHandle,'HandleVisibility','callback','UserData',ud);

% end CreateEyesamplFigure

%
%=============================================================================
% SetBlockCallbacks
% This sets the callbacks of the block if it is not a reference.
%=============================================================================
%
function SetBlockCallbacks(block)

%
% the actual source of the block is the parent subsystem
%
block=get_param(block,'Parent');

%
% if the block isn't linked, issue a warning, and then set the callbacks
% for the block so that it has the proper operation
%
if strcmp(get_param(block,'LinkStatus'),'none'),
%  warnmsg=sprintf(['The Eye-Pattern diagram block ''%s'' should be replaced with a ' ...
%                   'new version from the com_sour block library'],...
%                   block);
%  warning(warnmsg);

  callbacks={
    'CopyFcn',       'eyesampl([],[],[],''CopyBlock'')' ;
    'DeleteFcn',     'eyesampl([],[],[],''DeleteBlock'')' ;
    'LoadFcn',       'eyesampl([],[],[],''LoadBlock'')' ;
    'StartFcn',      'eyesampl([],[],[],''Start'')' ;
    'StopFcn'        'eyesampl([],[],[],''Stop'')' ;
    'NameChangeFcn', 'eyesampl([],[],[],''NameChange'')' ;
  };

  for i=1:length(callbacks)
    if ~strcmp(get_param(block,callbacks{i,1}),callbacks{i,2})
      set_param(block,callbacks{i,1},callbacks{i,2});
    end
  end
end

% end SetBlockCallbacks

%
%===============================================================
% Local Function
% This is used to separate the line type and mark type.
%===============================================================
%
function [linest, markst] = LineTypeSeparation(linetype)

% take out the marks
linest = linetype;
linidx = [findstr(linetype, '.'), ...
          findstr(linetype, 'o'), ...
          findstr(linetype, 'x'), ...
          findstr(linetype, '+'), ...
          findstr(linetype, '*'), ...
          findstr(linetype, 's'), ...
          findstr(linetype, 'd'), ...
          findstr(linetype, 'v'), ...
          findstr(linetype, '^'), ...
          findstr(linetype, '<'), ...
          findstr(linetype, '>'), ...
          findstr(linetype, 'p'), ...
          findstr(linetype, 'h')];
markst = 'none';
if ~isempty(linidx)
  markst = linetype(linidx);
  linest(linidx) = [];
end;
if isempty(linest)
  linest = 'none';
end;

%%%%%%%%%%%%%%%%%%%%%%%%
%   End of EYESAMPL.M   %
%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品免费日韩av| 国产精品丝袜一区| 色一情一伦一子一伦一区| 久久精品国产成人一区二区三区| 综合激情成人伊人| 久久先锋影音av鲁色资源网| 欧美色图在线观看| 成人av在线播放网站| 美女高潮久久久| 亚洲一级片在线观看| 亚洲国产成人在线| 欧美mv和日韩mv的网站| 欧美日本精品一区二区三区| 色一情一伦一子一伦一区| 国产高清亚洲一区| 国产自产v一区二区三区c| 日韩精品久久久久久| 亚洲国产成人av网| 一区二区三区美女视频| 亚洲人妖av一区二区| 国产欧美久久久精品影院| 欧美大片一区二区| 日韩一区二区三区四区| 欧美日产国产精品| 欧美日韩中文一区| 欧美私模裸体表演在线观看| 91老师片黄在线观看| 成人v精品蜜桃久久一区| 国产成人精品三级麻豆| 国产精品自产自拍| 欧美一级日韩不卡播放免费| 色婷婷久久久久swag精品| 99热精品国产| 99视频一区二区三区| 粉嫩av一区二区三区在线播放 | 国产精品污网站| 久久久亚洲高清| 久久久亚洲高清| 欧美激情一区二区三区在线| 国产欧美日韩久久| 中文字幕精品三区| 亚洲欧洲国产专区| 亚洲欧美日韩小说| 一区二区三区欧美日韩| 亚洲1区2区3区4区| 视频一区在线播放| 久久精品国产久精国产| 国产美女娇喘av呻吟久久| 国产成人午夜99999| 成人高清视频免费观看| 一本色道久久综合精品竹菊| 欧美三级一区二区| 日韩欧美资源站| 久久久777精品电影网影网| 欧美国产1区2区| 亚洲欧美日韩系列| 亚洲成人av在线电影| 毛片不卡一区二区| 国产成人免费视频网站高清观看视频| 丁香桃色午夜亚洲一区二区三区| 99精品在线免费| 欧美日韩精品一区视频| 欧美天天综合网| 日韩三级中文字幕| 国产亲近乱来精品视频| 亚洲精品少妇30p| 日韩av一级电影| 成人一区二区视频| 欧美日韩在线一区二区| www亚洲一区| 亚洲码国产岛国毛片在线| 日韩**一区毛片| 成人综合激情网| 欧美日韩免费视频| 久久久夜色精品亚洲| 亚洲美腿欧美偷拍| 激情欧美一区二区| 色94色欧美sute亚洲13| 欧美一区二区三区在线电影| 国产精品色哟哟| 人人超碰91尤物精品国产| 高清成人免费视频| 欧美一区二区在线免费观看| 国产精品乱人伦| 裸体健美xxxx欧美裸体表演| 成人av电影在线| 日韩欧美二区三区| 亚洲伦在线观看| 国产专区综合网| 欧美日韩一卡二卡三卡| 国产精品欧美一区二区三区| 视频在线在亚洲| 91丨九色丨黑人外教| 精品国产乱码久久久久久图片| 亚洲欧美日韩国产一区二区三区| 久久国产欧美日韩精品| 精品视频一区二区不卡| 亚洲视频电影在线| 国产成人免费xxxxxxxx| 欧美一区二区精品在线| 一区二区三区国产精华| 成人av在线看| 国产亚洲女人久久久久毛片| 免费的成人av| 欧美日韩一二三区| 亚洲精品国产成人久久av盗摄 | 99久久er热在这里只有精品66| 日韩一区二区视频| 婷婷激情综合网| 一本久道中文字幕精品亚洲嫩| 国产视频一区二区在线| 久久91精品久久久久久秒播| 精品视频一区二区三区免费| 亚洲免费观看视频| 99国产精品99久久久久久| 国产亚洲午夜高清国产拍精品| 裸体在线国模精品偷拍| 91精品国产一区二区三区 | 亚洲宅男天堂在线观看无病毒| 成人国产精品视频| 国产午夜精品一区二区三区视频| 另类欧美日韩国产在线| 欧美精品在线观看播放| 亚洲国产日韩a在线播放性色| 一本色道久久综合亚洲aⅴ蜜桃 | 色综合一区二区| 中文字幕中文字幕一区| 处破女av一区二区| 日本一二三不卡| 成人高清在线视频| 成人免费在线观看入口| 99视频有精品| 一区二区三区欧美在线观看| 色综合久久久久综合体桃花网| 成人欧美一区二区三区白人| 99久久精品国产麻豆演员表| 亚洲欧美二区三区| 在线亚洲一区二区| 亚洲国产精品久久一线不卡| 欧美午夜精品免费| 日韩精品一卡二卡三卡四卡无卡| 51精品国自产在线| 狠狠色伊人亚洲综合成人| 国产亚洲欧美色| 91在线视频播放| 亚洲国产日韩精品| 日韩三级在线免费观看| 国产传媒一区在线| 亚洲欧美一区二区不卡| 在线观看一区二区视频| 日韩电影网1区2区| 精品国产不卡一区二区三区| 国产白丝精品91爽爽久久| 国产精品色在线| 欧美日韩一级片在线观看| 男人的天堂久久精品| 久久久亚洲午夜电影| av一二三不卡影片| 亚洲777理论| 久久久国际精品| 91丨porny丨国产入口| 午夜私人影院久久久久| 欧美不卡在线视频| 成年人网站91| 午夜欧美2019年伦理| 久久久久高清精品| 在线免费av一区| 激情综合五月天| 亚洲免费av高清| 精品欧美黑人一区二区三区| 成a人片亚洲日本久久| 五月婷婷久久综合| 中文字幕不卡在线| 5月丁香婷婷综合| 9人人澡人人爽人人精品| 五月激情综合婷婷| 国产精品久久国产精麻豆99网站 | 9191成人精品久久| 国产成+人+日韩+欧美+亚洲| 亚洲最新在线观看| 久久久精品中文字幕麻豆发布| 色综合中文字幕国产 | 国产精品一级片| 亚洲一区二区三区爽爽爽爽爽| 精品久久久久一区| 欧美影片第一页| 国产成人精品影院| 日韩精品91亚洲二区在线观看 | 精品精品欲导航| 欧美中文字幕一区| 成人av动漫在线| 久久国产精品无码网站| 亚洲午夜久久久久中文字幕久| 国产喂奶挤奶一区二区三区| 宅男噜噜噜66一区二区66| 91天堂素人约啪| 国产丶欧美丶日本不卡视频| 美腿丝袜在线亚洲一区| 一二三区精品福利视频| 国产精品女主播av|