• 大小: 20KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-28
  • 语言: Matlab
  • 标签: CSMA  

资源简介

可设置多个节点,code旁有详细的注释,完美的图形显示,希望能帮到各位

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AddNode功能:记录节点信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function ret = AddNode(CollisionNodesindex)
CollisionNodes(1) = CollisionNodes(1) + 1;                                 %已统计当前有多少个节点准备发送
i = CollisionNodes(1);                                                     %取出当前发送站的数目
CollisionNodes(i+1) = index;                                               %记录下是哪个站点
ret = CollisionNodes;                                                      %返回

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-23 09:02  csma-ca-master\
     文件         603  2017-04-23 09:02  csma-ca-master\AddNode.m
     文件       12176  2017-04-23 09:02  csma-ca-master\Csmaca.m
     文件       12033  2017-04-23 09:02  csma-ca-master\Csmacd.m
     文件        2337  2017-04-23 09:02  csma-ca-master\Display.m
     文件        2797  2017-04-23 09:02  csma-ca-master\Display1.m
     文件           0  2017-04-23 09:02  csma-ca-master\FETCH_HEAD
     文件         431  2017-04-23 09:02  csma-ca-master\framePop.m
     文件         695  2017-04-23 09:02  csma-ca-master\framePush.m
     文件        1717  2017-04-23 09:02  csma-ca-master\GetFreeze.m
     文件          23  2017-04-23 09:02  csma-ca-master\HEAD
     文件         345  2017-04-23 09:02  csma-ca-master\Increase.m
     文件         679  2017-04-23 09:02  csma-ca-master\RecordSend.m
     文件        1035  2017-04-23 09:02  csma-ca-master\SetBackoffTime.m
     文件         104  2017-04-23 09:02  csma-ca-master\config
     文件       10133  2017-04-23 09:02  csma-ca-master\csma_ca.m
     文件       12167  2017-04-23 09:02  csma-ca-master\csma_ca1.m
     文件       11906  2017-04-23 09:02  csma-ca-master\csma_cd.m
     文件          73  2017-04-23 09:02  csma-ca-master\description
     文件        2486  2017-04-23 09:02  csma-ca-master\main.m
     文件        2488  2017-04-23 09:02  csma-ca-master\main1.m
     文件           0  2017-04-23 09:02  csma-ca-master\新建文本文档.txt
     文件         120  2017-04-23 09:02  csma-ca-master\程序模块功能详解.txt

评论

共有 条评论