Index months in timetable

4 次查看(过去 30 天)
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.

采纳的回答

Adam Danz
Adam Danz 2020-9-23
编辑:Adam Danz 2020-9-23
Logical index of rows that are in July,Aug,Sept.
idx = ismember(month(TT2_staLCA_WS.Time),[7,8,9]);
  4 个评论
Eric Escoto
Eric Escoto 2020-9-23
Ah of course. Perfect.
Thanks, Adam!
Adam Danz
Adam Danz 2020-9-23
Socially distant high-five!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by