Problem 76. De-dupe

Created by Cody Team in Community

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]


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

Solution Stats

56.97% Correct | 43.03% Incorrect
Last solution submitted on Mar 19, 2019

Problem Comments

Solution Comments

Recent Solvers1365

Suggested Problems

More from this Author95


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!