about Find difference set.

1 visualización (últimos 30 días)
C Zeng
C Zeng el 8 de En. de 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.

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 8 de En. de 2013
doc setxor
Use the 'rows' flag.
  1 comentario
C Zeng
C Zeng el 8 de En. de 2013
Thanks, Sean. setxor(A,B,'rows')

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by