How to plot only the matches of two different datetime?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have two datas that have different dimensions of datetime.
Datetime A has value of a, and datetime B which is shorter has b.
Is it possible to plot values a when datetime A and B matches? If so, can I know what to do?
댓글 수: 0
채택된 답변
dpb
2021년 7월 31일
Convert A and B to timetables, then use innerjoin
ttC=innerjoin(ttA,ttB);
will leave timetable ttC with the times that are unique to both tables.
댓글 수: 0
추가 답변 (1개)
Peter Perkins
2021년 8월 2일
If all you have are two datetime vectors, you can use intersect to find the common values. But I'm guessing you have other data as well, so dpb's suggestion is likely the right one.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!