Simulation code for “Structured Massive Access for Scalable Cell-Free Massive MIMO Systems” by Shuaifei Chen, Jiayi Zhang, Emil Björnson, Jing Zhang, and Bo Ai, IEEE Journal on Selected Areas in Communications, vol. 39, no. 4, pp. 1086-1100, April 2021.