delete repeated times from matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello! I have a matrix of times and irradiance values. It seems that some of the times (itime) must be duplicates.
length(unique(itime)) = 44850
length(itime) = 44858
I would like to find those 8 times that are not unique and remove the repeated times and the corresponding irradiance value (irrad). I don't want to keep any time that is repeated since there is no way to determine the correct irradiance value for the timestamp. I've attached the mat file with itime and irrad if that helps.
Thank you!
댓글 수: 0
채택된 답변
Walter Roberson
2019년 7월 19일
[unique_itime, Aidx] = unique(itime, 'stable');
corresponding_irrad = irrad(Aidx);
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!