Deleting rows based on the entries of first row

조회 수: 1 (최근 30일)
fadzhi
fadzhi 2016년 8월 4일
답변: Walter Roberson 2016년 8월 4일
Hi all, I am working with text files and there are duplicate entries in the first column which stands for time. After loading, i am using 'unique' command on this column but when the same is applied on the other columns i get different length because of the entries. Is there any command that finds duplicate entries in first columns and then removes the whole row particularly for text files Best Regards, Fawad Maqbool

채택된 답변

Walter Roberson
Walter Roberson 2016년 8월 4일
[~, uidx] = unique(YourArray(:,1));
NewArray = YourArray(uidx, :);

추가 답변 (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