Acces data at given timestamp in a timetable
9 views (last 30 days)
Show older comments
Sebastian Ehrismann
on 29 Apr 2021
Edited: Sebastian Ehrismann
on 29 Apr 2021
Hi,
i have a question concerning timetables.
The situation is as follows:
I have two timetables TT1 and TT2. From TT1 i get a timestamp e.g. TT1.time(3) (let's say '11:15:00'). I know that this timestamp is also present in TT2 but not a the same location (due to other samplerate). How can I find the value of var1 in TT2 at the given timestemp ('11:15:00')?
Thank you for your answers.
0 Comments
Accepted Answer
More Answers (1)
Steven Lord
on 29 Apr 2021
If you know it's in there exactly use ==. If you think there's a close match but maybe not exactly the same times I would create a timerange covering a couple seconds or minutes around that time (whatever the "close" in "close match" is) and use that timerange to index into the second timetable.
See Also
Categories
Find more on Logical 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!