The Matlab code was created based on algorithm proposed by
S.L. Zhou, N.H. Xiu and H.-D. Qi, A Fast Matrix Majorization-Projection Method for Penalized Stress Minimization with Box Constraint, IEEE Transactions on Signal Processing, vol. 66, no. 16, Aug 15, 2018.
Please give credit if you are interested in it.