There's an error on line 102 of the file multipath_sim2a.m; which I guess is pretty serious. From Appendix A. of:
A. F. Molisch, J. R. Foerster, and M. Pendergrass. Channel models for ultrawideband personal area networks, IEEE_M_WCOM, volume 10, number 6, pages 14--21, Dec, 2003
The random variable (RV) n1 corresponds to cluster fading, while n2 corresponds to the fading of each ray within a cluster. Important point is: n1 should only be generated once for a cluster and used for each ray in the cluster.
The code needs a minor modification, but can hardly be overlooked.
Thanks to the author for putting up this very useful code!