Problem 76. De-dupe

Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if

 a = [5 3 6 4 7 7 3 5 9]

then

 dedupe(a) = [5 3 6 4 7 9]

Solution Stats

64.09% Correct | 35.91% Incorrect
Last Solution submitted on Oct 03, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers3072

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!