Select rows of timetable based on Month range
1视图(最近30天)
Show older comments
Can someone provide the syntax for selecting monthly rowtimes from a timeteble? I would like to select various months. For example, Nov., Dec., Jan., Feb.
Here is what I'm trying:
“冬季”变量和易发线也被拧紧。
Thanks.
% Create new timetables at differing scales.
% Extract the month record
monthoftt =月(tt.time);
%确定11月至3月之间的记录(1:3和
% 11:12)
wintertime = [1,3;11,12];% [start, end] of desired months
wintermonths = monthofTT >= winter(1) & wintertime <= winter(2);
%在冬季隔离所有行
TTwinter = TT(month(TT.Time(winterrmonths)), :);