deleting all rows from column 1 with duplicates in column 2.

조회 수: 2 (최근 30일)
I have the following Table: Column 1 is the product ID and Column 2 is the previous product ID.
I want to delete all duplicates, so all values that are shown in colum 2 must be deleted from column 1. How can I do this.

채택된 답변

Matt J
Matt J 2023년 8월 1일
setdiff(Column1,Column2)
  댓글 수: 1
Rafael Borobio Castillo
Rafael Borobio Castillo 2023년 8월 1일
Thanks it works quite well, at the end I finished using ismember to identificate the position of the duplicates because I need to eliminate this from a larger dataset.
All the best, Rafael

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by