필터 지우기
필터 지우기

Index months in timetable

조회 수: 2 (최근 30일)
Eric Escoto
Eric Escoto 2020년 9월 23일
댓글: Adam Danz 2020년 9월 23일
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