Problem 42920. Find the inverse permutation
Given a permutation vector perm (a vector of n elements containing all the elements from 1 to n in some order), return the permutation vector invPerm such that perm(invPerm) is the a list of elements from 1 to n.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers65
Suggested Problems
-
5986 Solvers
-
Remove any row in which a NaN appears
8656 Solvers
-
Given a window, how many subsets of a vector sum positive
859 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
836 Solvers
-
674 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!