필터 지우기
필터 지우기

how to delete particular row in given matrix?

조회 수: 2 (최근 30일)
Matlab111
Matlab111 2014년 11월 4일
편집: Image Analyst 2014년 11월 4일
like this ('a' and 'b' will get varies;in this row will get varies and column is constant)
a=[181.2033 169.4197 1.0000];
b=[86.2558 191.0205 0.9994
136.4055 194.7999 0.9992
181.2033 169.4197 1.0000
191.3842 193.7259 0.9983];
than the answer should be
c=[86.2558 191.0205 0.9994
136.4055 194.7999 0.9992
191.3842 193.7259 0.9983]
i should delete a row of 'a' in 'b'

채택된 답변

Star Strider
Star Strider 2014년 11월 4일
Use the setdiff function:
c = setdiff(b, a, 'rows');
This gives you the result you want.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by