simple operations

3 visualizaciones (últimos 30 días)
Steven
Steven el 10 de Nov. de 2011
Hi, I'm seeking the way to erase repeated value into vector, like this:
a = [0 0 1 2 2 2 7];
b = something(a);
b = [0 1 2 7]
thx

Respuesta aceptada

Dr. Seis
Dr. Seis el 10 de Nov. de 2011
a = [0 0 1 2 2 2 7];
b = unique(a);
b = [0 1 2 7]

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by