about Find difference set.

4 views (last 30 days)
C Zeng
C Zeng on 8 Jan 2013
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.

Accepted Answer

Sean de Wolski
Sean de Wolski on 8 Jan 2013
doc setxor
Use the 'rows' flag.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!