Matrix with double values

2 vues (au cours des 30 derniers jours)
Eric
Eric le 4 Déc 2014
Commenté : Eric le 4 Déc 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

Réponse acceptée

Image Analyst
Image Analyst le 4 Déc 2014
Val = unique(Val);
  1 commentaire
Eric
Eric le 4 Déc 2014
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by