Previous Up Next

5.9.11  Inverse of a permutation: perminv

Every permutation has an inverse, which is also a permutation.

The perminv command computes the inverse of a permutation.

Example.

Input:

perminv([1,2,0])

Output:


2,0,1

Previous Up Next