필터 지우기
필터 지우기

faster method for setdiff

조회 수: 3 (최근 30일)
Yuang
Yuang 2016년 4월 11일
댓글: Walter Roberson 2016년 4월 11일
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
Kirby Fears 2016년 4월 11일
Yuang,
What kind of data is in A and B?
Is one a superset of the other?
Walter Roberson
Walter Roberson 2016년 4월 11일
What is your data type? Numeric? Categorical? Table?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by