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일

0 개 추천

F = setdiff (c, d, 'rows')

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by