faster method for setdiff
显示 更早的评论
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 个评论
Kirby Fears
2016-4-11
Yuang,
What kind of data is in A and B?
Is one a superset of the other?
Walter Roberson
2016-4-11
What is your data type? Numeric? Categorical? Table?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!