about Find difference set.

조회 수: 3 (최근 30일)
C Zeng
C Zeng 2013년 1월 8일
Hi, I have two matrices(same number of columns), M1 and M2. M2 is a set of subset of rows in M1. Is there a function in matlab that I can directly get M1-M2={set of rows in M1 but not set of rows in M2}
Thanks.

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 1월 8일
doc setxor
Use the 'rows' flag.
  댓글 수: 1
C Zeng
C Zeng 2013년 1월 8일
Thanks, Sean. setxor(A,B,'rows')

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by