Index months in timetable

2 views (last 30 days)
Eric Escoto
Eric Escoto on 23 Sep 2020
Commented: Adam Danz on 23 Sep 2020
Is there a command to index months in a timetable series?
I would like to index one long term timetable in two ways. In one, all July, August, and September are indexed. In the second Novemeber through March are indexed.
My timetable is a daily series.

Accepted Answer

Adam Danz
Adam Danz on 23 Sep 2020
Edited: Adam Danz on 23 Sep 2020
Logical index of rows that are in July,Aug,Sept.
idx = ismember(month(TT2_staLCA_WS.Time),[7,8,9]);
Adam Danz
Adam Danz on 23 Sep 2020
Socially distant high-five!

Sign in to comment.

More Answers (0)


Find more on Numeric Types 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!