Dado um vetor A, remove todos os valores repetidos deixando apenas 1 valor, e ordene o vetor.
RemoveRepetidosEOrdena([1 1 2 3]) = [1 2 3];
RemoveRepetidosEOrdena([5 4 8 5 5 6 4 2]) = [2 4 5 6 8];
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers54
Suggested Problems
-
665 Solvers
-
Find the index of n in magic(n)
277 Solvers
-
Replace every 3rd element in a vector with 4
269 Solvers
-
1986 Solvers
-
1851 Solvers
More from this Author20
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!