As long as you use the single-output version of 'dmperm'
and only permute the rows of matrix A, getting A(p,:), then the elements of x are not permuted.
A permutation of both the rows and columns of A, A(p,q), will permute the elements of x by q. To get x back to the original order is accomplished by
which amounts to the inverse permutation of q.
Best Answer