テーブルの日時が重複する行を削除したい
조회 수: 19 (최근 30일)
이전 댓글 표시
こんにちは。
添付のsampleの5列目にタイムスタンプ(timestamp_JST)があり、これが重複している行を削除したいのですが上手くいきません。
良い方法をご存知の方がいらっしゃいましたらご教示ください。
댓글 수: 0
채택된 답변
Atsushi Ueno
2021년 9월 1일
load('sample1.mat');
[~,ia] = unique(sample1.timestamp_JST,'stable');
B = sample1(ia,:)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!