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]
12710 Solvers
165 Solvers
271 Solvers
07 - Common functions and indexing 4
244 Solvers
594 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today