clc; clearvars; % input parameters UE = 500; % UEs number BI = 20; % backoff indicator UE_ID = [1:UE]'; t_bo = backoff(UE,BI); results = [UE_ID,t_bo]; figure(1) stem(t_bo); figure(2) hist(t_bo); disp(results)