How to extract all the data between two different dates?

33 Ansichten (letzte 30 Tage)
Gaetano Mannino
Gaetano Mannino am 27 Dez. 2022
Beantwortet: Eric Sofen am 27 Dez. 2022
I would like to extract all the data from a timetable between the upper and lower time limit.
as example between 01/06/2021 07:50 and 15/06/2021 12:00.
How can i implement the filter (without looking just the row number)?
Thank in advance

Akzeptierte Antwort

Simon Chan
Simon Chan am 27 Dez. 2022
You may use function isbetween.

Weitere Antworten (1)

Eric Sofen
Eric Sofen am 27 Dez. 2022
I'd recommend using a timerange.
Isbetween returns a logical vector based on a vector of datetimes. This can then be used to index into a timetable.
Timerange is used directly by the timetable to select the rows between the specified end points.

Kategorien

Mehr zu Dates and Time 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!

Translated by