Problem 532. Return unique values without sorting
48.04% Correct | 51.96% Incorrect
Last Solution submitted on Mar 23, 2023
@bmtran (Bryant Tran) on 27 Mar 2012
perhaps you should specify that y is in the order of the first occurence of each unique element of x
Peter Wittenberg on 6 Oct 2012
This would be a better problem if unique and sort functions were not allowed
Jihye Sofia Seo on 10 Feb 2017
Mark on 1 Jun 2012
Note 1) this solution does not use sort() anywhere :) 2) the more elegant "stable" is not available for unique in pre-2012 MATLAB.
Problem Recent Solvers831
Remove any row in which a NaN appears
07 - Common functions and indexing 6
More from this Author30
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!