How to plot only the matches of two different datetime?
Show older comments
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?
Accepted Answer
More Answers (1)
Peter Perkins
on 2 Aug 2021
0 votes
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.
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!