How to simultaneously use logical indexing and date time indexing in a timetable?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
Let's say I have a timetable with one of the variables being logical indexes, and I want to extract data from this timetable using that logical indexing from the timetable and a certain timerange at the same time. Doing something like this:
extracted_data = TT(trange & TT.Var_log_idx==true,'Var3');
I would like to be able to do this all in one statement. Hope that explains it, I have attached a mat file with a sample timetable and a timerange if you wish to try.
Any help is appreciated,
Thanks!
0 Kommentare
Akzeptierte Antwort
HWIK
am 3 Sep. 2021
1 Kommentar
Peter Perkins
am 2 Mär. 2022
Another possibility would be to and together the result of isbetween and the logical variable. timerange is essentially a wrapper around isbetween, which itself is just a wrapper around < and >.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Timetables finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!