faster method for setdiff

2 Ansichten (letzte 30 Tage)
Yuang
Yuang am 11 Apr. 2016
Kommentiert: Walter Roberson am 11 Apr. 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 Kommentare
Kirby Fears
Kirby Fears am 11 Apr. 2016
Yuang,
What kind of data is in A and B?
Is one a superset of the other?
Walter Roberson
Walter Roberson am 11 Apr. 2016
What is your data type? Numeric? Categorical? Table?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by