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 で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!