This is the simulation demo code for Figure 3 of the following paper:
X. Yuan, Y.-J. A. Zhang, Y. Shi, W. Yan, and H. Liu. "Reconfigurable-Intelligent-Surface Empowered Wireless Communications: Challenges and Opportunities". arXiv preprint arXiv:2001.00364. [ArXiv Link]
If you in any way use this code for research that results in publications, please cite our original article listed above.