how to remove certain elements in 2D array?

2 Ansichten (letzte 30 Tage)
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN am 18 Feb. 2016
i have a variable 'c' in size of 4x2 c=[4 2; 5 3; 3 6; 4 7;] and another variable 'd' in size of 2x2 d=[4 2; 3 6;]. Compare two variables( c and d)and remove elements of 'd'variable in Variable 'c' and how get final output F=[5 3; 4 7;]?

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 18 Feb. 2016
Bearbeitet: Andrei Bobrov am 18 Feb. 2016
F = setdiff (c, d, 'rows')
  1 Kommentar
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN am 18 Feb. 2016
Bearbeitet: LAKSHMANAN ADAIKKAPPAN am 18 Feb. 2016
Thank you very much for your guidance Sir.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by