how to remove certain elements in 2D array?

조회 수: 4 (최근 30일)
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN 2016년 2월 18일
편집: LAKSHMANAN ADAIKKAPPAN 2016년 2월 18일
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;]?

채택된 답변

Andrei Bobrov
Andrei Bobrov 2016년 2월 18일
편집: Andrei Bobrov 2016년 2월 18일
F = setdiff (c, d, 'rows')
  댓글 수: 1
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN 2016년 2월 18일
편집: LAKSHMANAN ADAIKKAPPAN 2016년 2월 18일
Thank you very much for your guidance Sir.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by