simple operations

3 vues (au cours des 30 derniers jours)
Steven
Steven le 10 Nov 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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer 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