ipermute
Inverse permute — undo a permute operation.
Syntax
Section titled “Syntax”A = ipermute(B, order)Description
Section titled “Description”Inverse of permute. If B = permute(A, order), then A = ipermute(B, order). Equivalent to permute(B, invperm(order)) where invperm is the inverse permutation.
Examples
Section titled “Examples”A = magic(3);B = permute(A, [2 1]);isequal(ipermute(B, [2 1]), A) % 1