Matrix with double values

1 visualización (últimos 30 días)
Eric
Eric el 4 de Dic. de 2014
Comentada: Eric el 4 de Dic. de 2014
Hi everybody,
I have a matrix with the double amount of values in (almost) random order and I would like to be able to find and delete the double values.
Example:
Val = [2;4;7;2;3] (5x1 double) and I would like to find and delete (or replace) 2 since it occurs twice.
Does anyone know how to do this?
Best regards,
Christian

Respuesta aceptada

Image Analyst
Image Analyst el 4 de Dic. de 2014
Val = unique(Val);

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by