A=[6 6;7 8;0 9;9 10] B=[6 6;0 9] how to find Matrix C with rows not in B but in A?

1 Ansicht (letzte 30 Tage)
A=[6 6;7 8;0 9;9 10]
B=[6 6;0 9]
how to find Matrix C with row not in B but in A?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 28 Aug. 2015
See ismember() with the 'rows' option. And use logical indexing.
  2 Kommentare
SRI SINDHU S P
SRI SINDHU S P am 29 Aug. 2015
Thank you.I am getting answer in terms of 0s and 1s but I need the matrix C as C=[7 8 ; 9 10] where the elements in C are present not in B but in A.
Walter Roberson
Walter Roberson am 29 Aug. 2015
"Logical indexing" Search for it in the documentation

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by