Cody

Problem 76. De-dupe

Created by Cody Team in Cody Challenge

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

57.25% Correct | 42.75% Incorrect
Last solution submitted on Dec 17, 2018

Problem Comments

Solution Comments

Recent Solvers1323

Tags

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!