资源简介
IEEE TRANSACTIONS ON VEHICULAR TECHNOLOGY 上一篇 Comprehensive Evaluation of the IEEE 802.15.4 MAC Layer Performance With Retransmissions的源代码,很有帮助,对于研究wireless sensor network、MAC仿真很有帮助。
代码片段和文件信息
% Version 1.0
% CSMA/CA SIMULATOR based on the simplified model for 802.15.4 with
% acknowledgements and retransmissions presented in the following paper:
%
% A. Faridi M.R. Palattella A. Lozano Mischa Dohler G. Boggia
% A. Grieco and P. Camarda “Comprehensive Evaluation of the IEEE
% 802.15.4 MAC layer Performance with Retransmissions“ IEEE Transactions
% on Vehicular Technology Vol. 59 No. 8 pp 3917-3932 Oct. 2010.
%
% Which is available at:
% http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5540318
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This file is licensed under the Creative Commons Attribution 3.0 %
% Unported license (http://creativecommons.org/licenses/by/3.0/). %
% %
% You are free: %
% * to share : to copy distribute and transmit the work %
% * to remix : to adapt the work %
% %
% Under the following condition: %
% * attribution : You must attribute the work in the manner %
% specified by the author or licensor (but not in any way %
% that suggests that they endorse you or your use of the %
% work). %
% %
% To attribute please cite the following article in your work: %
% A. Faridi M.R. Palattella A. Lozano Mischa Dohler G. Boggia %
% A. Grieco and P. Camarda “Comprehensive Evaluation of the IEEE %
% 802.15.4 MAC layer Performance with Retransmissions“ IEEE Trans. on %
% Vehicular Technology Vol. 59 No. 8 pp 3917-3932 Oct. 2010. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
t_start = clock
tt = 6 % the simulation will run for 10^tt (recommended value: tt = 8)
% L is the packet length. Always set minL = maxL. See explanation for LL.
minL = 7;
maxL = 7;
stepL = 1;
% N is the number of nodes in the network
minN = 2;
maxN = 30;
stepN = 1;
aMinBE = 3;
aMaxBE = 5;
M = 4; % max(NB)
R = 3; % max # retransmission
W0 = 2^aMinBE;
d = aMaxBE - aMinBE;
L_Ack = 2;
% creating filenames for saving data
fsuffix = strcat(‘_BE‘num2str(aMinBE)‘_‘num2str(aMaxBE)‘_L‘num2str(minL)‘_‘num2str(maxL)‘_N‘num2str(minN)‘_‘num2str(maxN)‘_M‘num2str(M)‘_R‘num2str(R)‘_T‘num2str(tt));
fname_data = strcat(‘data/‘datefsuffix);
T = 10^tt; %nb of slots simulation runs
N = minN:stepN:maxN;
LL = minL:stepL:maxL; % Note: this range for L is kept from an older
% version for legacy. However LL has to be scalar
% otherwise the code will not run properly. For
% running for vector LL the code has to be modified.
%-------------------------------------------------------------------------
% Initializing variables
%-------------------------------------------------------------------------
% The following parameters are counted for node 1 only (reference node)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nbBsuc = zeros(length(LL)length
- 上一篇:图像的RGB特征提取代码
- 下一篇:永磁直驱电机控制仿真simuli
nk模式
相关资源
- MATLAB实现人脸识别光照归一化算法
- matlab计算DH矩阵源码.7z
- 用迎风离散格式解对流方程(matlab)
- 基于Matlab GUI的串口通信编程
- BP神经网络用于轴承故障分类
- MATLAB动态规划源码
- 被动调Q激光器MATLAB仿真
- 神经网络matlab程序
- 二维singer滤波
- Matlab+GUIDE使用总结--Matlab+GUI界面
- SVPWM整流器matlab仿真
- 自己用matlab写的jpeg压缩,解压程序
- matlab中实现遗传算法求解旅行商问题
- isight调用matlab
- 利用matlab实现H-infinity鲁棒控制
- 强化学习matlab代码
- 光伏电池输出特性曲线MATLAB代码
- 基于LMS算法的均衡器MATLAB实现代码
- 蚁群、粒子群、GA、TS等算法解决Job
- matlab关于商场人数的泊松随机过程仿
- 脉冲编码调制PCM调制与解调
- 64QAM调制解调
- matlab遗传算法程序以求解函数的极值
- 毕业论文 基于matlab的PSK通信系统仿真
- matlab 代码实现 信号 数字 变频
- KUKA六关节机器人matlab仿真
- hurst指数的MATLAB实现
- PSO-RBF的MATLAB程序实现
- 商人过河MATLAB.rar
- MatlabR2017aWin64Crack.rar
评论
共有 条评论