필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

comparing and deleting the elements in array

조회 수: 1 (최근 30일)
Bathrinath
Bathrinath 2013년 12월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
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]

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 10일
See ismember() with the 'rows' option.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by