anti_framelength.m

来自「此代码为RFID中防冲突算法固定帧ALOHA算法中的」· M 代码 · 共 17 行

M
17
字号
function f=anti_framelength(Nc,Nr,Nn,F)
n=1;
N=round(2*Nc+Nr+Nn);
e=anti_tagnum_aver(N,F);
while n>0
    %N=N1;
    
    N1=round(e*Nc+Nr+Nn);
    b=N1-N;
    c=abs(N1-N);
    if b>0
        f=N-Nc;
        n=n-1;
    else
        N==N1;
    end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?