Code covered by the BSD License  

Highlights from
Permute a Matrix

from Permute a Matrix by Andrey Popov
From given order of rearrangement constructs the permutation matrix P and computes B = P'*A*P

All files for Permute a Matrix
/license.txt
/permm.m

Contact us at files@mathworks.com