I have implemented slotted aloha protochol and pseudo bayesian stabilization.
"sloted.m" is the implementation of Slotted ALOHA and "pseudobayesian.m" is slotted aloha with the stabilization algorithm.
number of nodes:100
number of slots:1000
retransmission prob: 0.01