An array is given. Find the unique elements of the array. [keep the sequence unchanged]
For example if input x=[2 ,4 , 9 ,2 ,7 ,9 ,14, 13 ,14 ,13 ,16 ,13 ,2 ,9, 22,1,3]
output y=[2 ,4 ,9 ,7,14,13 ,16, 22, 1, 3]
it will no be [1, 2, 3, 4, 7, 9, 13, 14, 16, 22]
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers87
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
53609 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2069 Solvers
-
Relative ratio of "1" in binary number
1674 Solvers
-
6613 Solvers
-
Find x rows where the sum of the numbers is the maximum
612 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!