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

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

?? sbiterr.m

?? 3G源碼Mfiles有很詳實的內(nèi)容哦適合3g初學(xué)者
?? M
?? 第 1 頁 / 共 2 頁
字號:
	  % title for error number
	  uicontrol(figureHandle, ...
	      'Style', 'text', ...
	      'Units', 'normalized',...
	      'Position', [p_beg1,...
		  ((len_rate - ii) * 3 + 1 + 1)/totalLine+.001, ...
		  p_wid, 1/totalLine-.002],...
	      'String','Error Number'); 

	  % title for error rate
	  uicontrol(figureHandle,...
	      'Style', 'text',...
	      'Units', 'normalized',...
	      'Position', [p_beg1, ...
		  ((len_rate - ii) * 3 + 1)/totalLine+.001,...
		  p_wid, 1/totalLine-.002],...
	      'String','Error Rate'); 
	else
	  %error number
	  kk = (i-1)*2 + (inputLength * 2 - 1)*(ii - 1);
	  set(linePlot, ...
	      'XData', [get(linePlot, 'XData') [p_beg1 p_beg1]-.001 NaN],...
	      'YData', [get(linePlot, 'YData'),...
		  ((len_rate - ii)* 3 + 1)/totalLine,...
		  ((len_rate - ii)* 3 + 2 + 1)/totalLine,...
		  NaN]);
	  
	  h_sym_bit(kk) = text(p_beg, ...
	      ((len_rate-ii)*3*2 + 3 + 2)/2/totalLine,...
	      '0',...
	      'Parent', handleAxes);
	  set(h_sym_bit(kk), ...
	      'UserData', 0,...
	      'FontSize', 9,...
	      'Color',[0 0 0],...
	      'HorizontalA','Center',...
	      'VerticalA',  'Middle');

	  %error rate
	  h_sym_bit(kk+1) = text(p_beg, ...
	      ((len_rate-ii)*3*2 +1 + 2)/2/totalLine, ...
	      '0',...
	      'Parent', handleAxes);
	  set(h_sym_bit(kk+1), ...
	      'UserData', 0,...
	      'FontSize', 9,...
	      'Color',[0 0 0],...
	      'HorizontalA','Center',...
	      'VerticalA',  'Middle');
	end;
      end;
    end;
    set(handleAxes, 'Xlim',[0 1],...
	'Ylim',[0 1])
    current_point = 0;
    set(figureHandle, 'UserData', [current_point, h_sym_bit, handleRecord]);
    
    x(1) = figureHandle;
    tmp1 = uicontrol(...
	figureHandle,...
	'Style', 'pushbutton',...
	'Unit', 'normalized',...
	'Position', [0 0 .5 1/totalLine], ...
	'String', 'Reset error count',...
	'Callback',...
	['sbiterrs(gcbf,',num2str(len_rate),',',num2str(inputLength),')']);
    
    tmp1 = uicontrol(...
	figureHandle,...
	'Style', 'pushbutton',...
	'Unit', 'normalized',...
	'Position', [.5 0 .5 1/totalLine], ...
	'String', 'Close',...
	'Callback','close(gcbf)');
  elseif x(1) < 0
    %  figure has been closed
    return;
  end;
  
  plot_flag_test = allchild(0);
  if isempty(plot_flag_test)
    return;
  elseif isempty(find(plot_flag_test == x(1)))
    x(1) = -1;
    return;
  end;
  
  inputLength = inputLength;
  handles = get(x(1), 'UserData');
  figureHandle =  x(1);
  current_point = handles(1);
  if K == 1
    h_sym_bit = handles(2 : inputLength*2);
    handleRecord = handles(inputLength*2+1 : length(handles));
    t_tras = get(h_sym_bit(1), 'UserData') + 1;
    set(h_sym_bit(1), 'UserData', t_tras,...
	'String', num2str(t_tras, 8));
  else
    h_sym_bit = handles(2 : inputLength*4-1);
    handleRecord = handles(inputLength*4 : length(handles));
    t_tras(1) = get(h_sym_bit(1), 'UserData') + 1;
    t_tras(2) = get(h_sym_bit(inputLength*2), 'UserData') + K;
    set(h_sym_bit(1), 'UserData', t_tras(1), ...
	'String', num2str(t_tras(1),  8));
    set(h_sym_bit(inputLength*2), 'UserData', t_tras(2), ...
	'String', num2str(t_tras(2), 8));
  end;    
  if numLine > 0
    if current_point == 0
      set(handleRecord(1), 'UserData', rem(get(handleRecord(1), 'UserData') + 1, 2));
    end;
    col = colorMap(get(handleRecord(1), 'UserData') + 1, :);
    next_point = rem(current_point + 1, numLine);
    last_point = rem(current_point-1+numLine, numLine);
  else
    next_point = 0;
    last_point = 0;
  end;
  for i = 1 : inputLength
    if i == 1
      if numLine > 0
	set(handleRecord(current_point * inputLength + i), ...
	    'String', num2str(x(3), 8), 'Color',col);
      end;
    else
      if numLine > 0
	if u(i) == x(3)
	  set(handleRecord(current_point * inputLength + i), ...
	      'String', num2str(u(i), 8), 'Color',col);
	else
	  set(handleRecord(current_point * inputLength + i), 'String', ...
	      num2str(u(i), 8), 'Color',colorMap(3,:));
	end
      end;
      if u(i) ~= x(3)
	% in case of error
	% number of errors
	num = get(h_sym_bit((i-1)*2), 'UserData') + 1;
	set(h_sym_bit((i-1)*2), 'UserData', num, 'String', num2str(num, 8));
	% errors rate
	set(h_sym_bit((i-1)*2+1), 'String', num2str(num/t_tras(1), 8));
	if K > 1
	  % number
	  kk = (i-1)*2 + (inputLength * 2 - 1);
	  num = get(h_sym_bit(kk), 'UserData');
	  erb = sum(de2bi(flxor(x(3), u(i))));
	  erb = erb + num;
	  set(h_sym_bit(kk), 'UserData', erb, 'String', num2str(erb, 8));
	  % rate
	  set(h_sym_bit(kk+1), 'String', num2str(erb/t_tras(2),8));
	end;
      else
	tmp = get(h_sym_bit((i-1)*2), 'UserData');
	if tmp 
	  set(h_sym_bit((i-1)*2 + 1), 'String', ...
	      num2str(tmp / t_tras(1), 8));
	end;
	if K > 1
	  kk = (i-1)*2 + (inputLength * 2 - 1);
	  tmp = get(h_sym_bit(kk), 'UserData');
	  if tmp 
	    set(h_sym_bit(kk + 1), 'String', ...
		num2str(tmp / t_tras(2), 8));
	  end
	end;
      end;
    end
  end;
  current_point = next_point;
  sys = [figureHandle; x(2:length(x))];
  % save all the current displaying information in figureHandle  
  set(figureHandle, 'UserData', [current_point, h_sym_bit, handleRecord]);
  %second in User data is the current position for the line of handleRecord.
end;  

% 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
%
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 = GetSBiterrFigure(gcbh);
if ~ishandle(figureHandle),
  figureHandle = CreateSBiterrFigure;
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=GetSBiterrFigure(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 = GetSBiterrFigure(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

SetSBiterrFigure(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 = GetSBiterrFigure(gcbh);
if ishandle(figureHandle),
  delete(figureHandle);
  SetSBiterrFigure(gcbh,[]);
end

% end LocalBlockDeleteFcn

%
%=============================================================================
% GetSBiterrFigure
% Retrieves the figure window associated with this S-function Bit-Error Meter
% from the block's parent subsystem's UserData.
%=============================================================================
%
function figureHandle=GetSBiterrFigure(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 GetSBiterrFigure

%
%=============================================================================
% SetSBiterrFigure
% Stores the figure window associated with this S-function Bit-Error Meter
% in the block's parent subsystem's UserData.
%=============================================================================
%
function SetSBiterrFigure(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 SetSBiterrFigure

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

%
% 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 20 350 400],...
      'NumberTitle',  'off',...
      'Visible', 'off', ...      
      'Name',         get_param(gcbh,'Name'),...
      'Color',	   [1 1 1],...		   
      'IntegerHandle','off',...
      'DeleteFcn',    'sbiterr([],[],[],''DeleteFigure'')'...
      );
else
  figureHandle = b;
end;
set(0, 'CurrentFigure', figureHandle);

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

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

% end CreateSBiterrFigure

%
%=============================================================================
% 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 Bit-Error Meter block ''%s'' should be replaced with a ' ...
%                   'new version from the com_sour block library'],...
%                   block);
%  warning(warnmsg);

  callbacks={
    'CopyFcn',       'sbiterr([],[],[],''CopyBlock'')' ;
    'DeleteFcn',     'sbiterr([],[],[],''DeleteBlock'')' ;
    'LoadFcn',       'sbiterr([],[],[],''LoadBlock'')' ;
    'StartFcn',      'sbiterr([],[],[],''Start'')' ;
    'StopFcn'        'sbiterr([],[],[],''Stop'')' ;
    'NameChangeFcn', 'sbiterr([],[],[],''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

%%%%%%%%%%%%%%%%%%%%%%%%
%   End of SBITERR.M   %
%%%%%%%%%%%%%%%%%%%%%%%%


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩av一区二区三区在线播放 | 一区二区视频在线看| 欧美在线不卡视频| 国产高清精品久久久久| 亚洲第一狼人社区| 1区2区3区欧美| 久久精品人人做人人爽97| 91精品国产欧美日韩| 日本韩国欧美一区二区三区| 国产精品一卡二| 青青草国产成人av片免费| 亚洲精品中文在线影院| 日本一区二区视频在线| 精品99999| 日韩欧美色综合| 9191久久久久久久久久久| 在线精品视频小说1| 99re成人在线| 99久久精品99国产精品| 成人中文字幕在线| 国产在线精品一区二区三区不卡| 午夜国产精品一区| 亚洲一二三级电影| 亚洲欧美偷拍卡通变态| 中文字幕佐山爱一区二区免费| 国产亚洲精品超碰| 久久综合色综合88| 亚洲精品一区二区三区影院| 日韩午夜激情电影| 欧美一级xxx| 日韩免费看的电影| 欧美不卡123| 精品国产髙清在线看国产毛片| 欧美一区二区免费| 日韩欧美久久久| 日韩欧美精品在线视频| 日韩精品中文字幕在线一区| 精品欧美乱码久久久久久| 欧美xfplay| 欧美精品一区二区不卡| 26uuuu精品一区二区| 国产午夜亚洲精品理论片色戒| 久久中文字幕电影| 欧美国产97人人爽人人喊| 国产精品欧美经典| 亚洲品质自拍视频| 亚洲国产中文字幕| 奇米亚洲午夜久久精品| 激情综合五月天| 国产精品18久久久久| 成人性生交大合| 91色在线porny| 欧美天天综合网| 91精品国产手机| 久久新电视剧免费观看| 中文字幕成人av| 亚洲精品综合在线| 青青草原综合久久大伊人精品 | 日韩一区二区影院| 国产午夜一区二区三区| 1024精品合集| 天堂久久久久va久久久久| 激情五月激情综合网| av福利精品导航| 欧美图片一区二区三区| 精品久久久久久久一区二区蜜臀| 国产日韩欧美a| 亚洲一区二区三区四区在线| 另类小说视频一区二区| 成人久久视频在线观看| 欧美日韩久久一区二区| 久久精品在线观看| 亚洲黄色录像片| 精一区二区三区| 一本到不卡免费一区二区| 日韩一卡二卡三卡四卡| 亚洲国产精品传媒在线观看| 一区二区久久久久久| 国内精品伊人久久久久av影院 | 日韩国产一区二| 高清不卡在线观看| 欧美精品久久久久久久多人混战| 2021国产精品久久精品| 亚洲国产日韩在线一区模特| 国产精品自拍网站| 欧美亚洲动漫精品| 久久精品一区二区三区四区| 亚洲国产成人va在线观看天堂| 国产呦精品一区二区三区网站| 日本韩国欧美在线| 久久久高清一区二区三区| 亚洲成人午夜电影| www.激情成人| 久久久久久久久久电影| 日韩中文字幕91| 91视频国产资源| 欧美激情自拍偷拍| 蜜桃精品视频在线| 欧美日韩国产成人在线免费| 中文字幕一区二区三区四区| 裸体歌舞表演一区二区| 欧美三级在线看| 一区在线观看免费| 国产99久久久国产精品免费看 | 国产三级三级三级精品8ⅰ区| 亚洲制服欧美中文字幕中文字幕| 成+人+亚洲+综合天堂| www成人在线观看| 全国精品久久少妇| 欧美乱妇23p| 亚洲综合清纯丝袜自拍| av一本久道久久综合久久鬼色| 久久久夜色精品亚洲| 日本在线不卡一区| 欧美日韩一区中文字幕| 亚洲嫩草精品久久| 91日韩精品一区| 国产精品不卡在线观看| 成人性色生活片| 国产视频一区二区在线| 国内成人自拍视频| 欧美刺激午夜性久久久久久久| 亚洲观看高清完整版在线观看| 色婷婷精品久久二区二区蜜臀av| 中文欧美字幕免费| 成人精品小蝌蚪| 国产精品你懂的在线欣赏| 成人av在线资源| 中文字幕永久在线不卡| 不卡一区二区在线| 最新国产の精品合集bt伙计| 成人毛片老司机大片| 国产精品成人网| 91老师片黄在线观看| 亚洲欧美另类小说| 在线亚洲高清视频| 亚洲国产欧美日韩另类综合| 欧美色倩网站大全免费| 亚洲h在线观看| 911精品产国品一二三产区| 日本不卡一区二区| 欧美xxxxxxxxx| 国v精品久久久网| 成人欧美一区二区三区小说| 色8久久精品久久久久久蜜 | 日韩电影在线一区二区三区| 欧美精品一级二级| 老汉av免费一区二区三区| 久久婷婷一区二区三区| 成人午夜精品一区二区三区| 成人免费在线播放视频| 欧美性极品少妇| 伦理电影国产精品| 国产丝袜欧美中文另类| 91丝袜国产在线播放| 亚洲综合精品自拍| 日韩精品最新网址| 高潮精品一区videoshd| 亚洲乱码精品一二三四区日韩在线| 欧美日韩免费高清一区色橹橹| 美国欧美日韩国产在线播放| 国产日韩欧美不卡| 欧美性一二三区| 国产一区二区三区高清播放| 亚洲人成小说网站色在线 | 欧美日韩一区二区在线观看 | 日本高清免费不卡视频| 午夜精品视频在线观看| 久久综合一区二区| 91蜜桃网址入口| 免费人成在线不卡| 国产精品毛片大码女人| 欧美剧在线免费观看网站| 国产乱对白刺激视频不卡| 一区二区免费看| 久久免费视频一区| 欧美少妇一区二区| 国产成a人无v码亚洲福利| 亚洲一区二区在线视频| 精品福利在线导航| 欧美性受xxxx| 国产69精品久久99不卡| 午夜精品久久久久久久蜜桃app| 2017欧美狠狠色| 欧美日韩在线综合| 国产一区二区三区四区五区美女| 亚洲一级二级三级| 国产喂奶挤奶一区二区三区| 欧美喷潮久久久xxxxx| 91丝袜呻吟高潮美腿白嫩在线观看| 日本亚洲视频在线| 亚洲精品成人悠悠色影视| 国产性色一区二区| 日韩欧美在线123| 欧美优质美女网站| 国产.精品.日韩.另类.中文.在线.播放 | av不卡在线观看| 韩国中文字幕2020精品| 亚洲一区日韩精品中文字幕| 国产精品毛片a∨一区二区三区|