Index months in timetable

4 visualizaciones (últimos 30 días)
Eric Escoto
Eric Escoto el 23 de Sept. de 2020
Comentada: Adam Danz el 23 de Sept. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by