Problem 43975. Permute the unique values of a vector without sorting
Solution Stats
Problem Comments
-
2 Comments
goc3
on 19 Jan 2017
The problem title and description have been improved.
yurenchu
on 27 Apr 2017
What should the behavior be when a certain value occurs three times or more in vector A? For example, when A = [2 5 3 4 2 1 3 2] (which is the same as the A in the problem description, but with another '2' added to the end), should matrix B list [5 4 2 1 3] before [5 3 4 1 2], or after?
Solution Comments
-
1 Comment
Gareth Lee
on 13 Jan 2017
if x is not continuous, the result will be not true
Problem Recent Solvers12
Suggested Problems
-
211 Solvers
-
239 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1103 Solvers
-
138 Solvers
-
Sort complex numbers into complex conjugate pairs
105 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!