Info

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

how to delete same cols from a matrix

조회 수: 2 (최근 30일)
Brian Kim
Brian Kim 2017년 3월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
for example, a=[4 5 6 5 6 4; 4 6 5 3 5 4; 4 7 2 8 2 4; 4 2 4 7 4 4; 4 3 9 1 9 4;] is.
so, row=1 & 5 and row =2 & 4 is same.
what i want is to delete same row. but each ones must remain.

답변 (1개)

KSSV
KSSV 2017년 3월 3일
doc unique
b = unique(a', 'rows')'

Community Treasure Hunt

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

Start Hunting!

Translated by