资源简介
RFID防碰撞技术 ALOHA算法的matlab仿真
代码片段和文件信息
%function [ output_args ] = aloha( input_args )
%ALOHA Summary of this function goes here
% Detailed explanation goes here
%SIMULATION PARAMETERS
%simulation for pure Aloha protocol
%total simulation time in seconds
runtime=0.2;
%total number of stations
nstation=10;
%transmission throughput of the media in bits per second
netthrou=10e6;
%frame size in bits
fsize=8000;
%avarage frame arrival rate per second for each station
%frate=10;
for frate=1:5:150
%average frame arrival rate per simulation iteration
trh=frate/10000;
%random wait window in number of simulation iterations
wwind=100;
%EVENTS VARIABLES
%transmit active
tr=zeros(1nstation);
%transmit queue
tq=zeros(1nstation);
%transmit progress counter
tcnt=zeros(1nstation);
%collision keeper
colis=zeros(110000*runtime);
%collision
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2383 2009-11-10 00:24 aloha.m
----------- --------- ---------- ----- ----
2383 1
评论
共有 条评论