utilizing physical layer information to improve rfid tag
utilizing physical layer information to improve rfid tag
utilizing physical layer information to improve rfid tag
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
A.1.3 Collision Detection<br />
%Rushikesh Khasgiwale<br />
%UTA E.E.<br />
%Nov 2009<br />
%Calculate collisions for this round<br />
function [c0, c1, c2, ck] = count coll(slots,n,<strong>tag</strong>)<br />
%n = num of <strong>tag</strong>s left<br />
c0=0; c1=0; c2=0; ck=0;<br />
for j = 1:slots<br />
coll=0;<br />
for k = 1:n<br />
if(j==<strong>tag</strong>(k))<br />
coll = coll + 1;<br />
end<br />
end<br />
if(coll==0)<br />
c0 = c0+1;<br />
end<br />
if(coll==1)<br />
c1 = c1+1;<br />
end<br />
if(coll==2)<br />
c2 = c2+1;<br />
end<br />
if(coll>2)<br />
ck = ck+1;<br />
50