Effacer les filtres
Effacer les filtres

faster method for setdiff

3 vues (au cours des 30 derniers jours)
Yuang
Yuang le 11 Avr 2016
Commenté : Walter Roberson le 11 Avr 2016
I am using setdiff function for deleting same rows.
C = setdiff(A,B,'rows')
It takes about 84.9% of time for my entire code which consumes a lot of time. Is there a faster way for setdiff function?
  2 commentaires
Kirby Fears
Kirby Fears le 11 Avr 2016
Yuang,
What kind of data is in A and B?
Is one a superset of the other?
Walter Roberson
Walter Roberson le 11 Avr 2016
What is your data type? Numeric? Categorical? Table?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Tables 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