Effacer les filtres
Effacer les filtres

Whhat is the best way to remove repitions of two or three vectors?

2 vues (au cours des 30 derniers jours)
yousef Yousef
yousef Yousef le 12 Avr 2014
Commenté : yousef Yousef le 12 Avr 2014
suppose I have a=[9 10 6 3 7],b=[1 9 6 7 8], I want to remove the repartitions so that:a=[9 10 6 3 7],b=[1 0 0 0 8]

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Avr 2014
b(ismember(b,a)) = 0;

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by