Deleting rows based on the entries of first row
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Walter Roberson
2016 年 8 月 4 日
[~, uidx] = unique(YourArray(:,1));
NewArray = YourArray(uidx, :);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!