Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

comparing and deleting the elements in array

1 Ansicht (letzte 30 Tage)
Bathrinath
Bathrinath am 10 Dez. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
x = [3 2 5 1 6 4; 4 1 3 5 2 6; 1 5 6 3 4 2; 1 5 6 2 3 4; 4 1 3 2 5 6 ]; y = [3 2 5; 4 1 3]; in this case 'y' has to be be compared with first three elements of 'x'. If first three elements of 'x' matches with 'y'. matched elements has to be be deleted. my result has to be x = [1 5 6 3 4 2; 1 5 6 2 3 4]

Antworten (1)

Walter Roberson
Walter Roberson am 10 Dez. 2013
See ismember() with the 'rows' option.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by