The code is related with the simulation results for the research article titled as "Saturation Throughput Analysis of IEEE 802.15.6 Slotted Aloha in Heterogeneous Conditions" at IEEE Wirless Communications Letters.