I have a timetable matrix called as TT1 (680 x 4). I want to run a loop that does : if its a summer month then remove data from all cloumns from time = 22:00 to 5:00. else, if its a winter month remove data from all column from time = 18:00 to 8:00. How do I do that? This is what I have so far:
summerMon = 3:8;
winterMon = [1,2,9,10,11,12];
for i = 1:length(TT1)
if x = month(TT1.time(i) == summerMon)
%then here I want to write: remove this and this time for summer for whole matrix
else y = month(TT1.time(i) == winterMon)
%then here I want to write: remove this and this time for winter for whole matrix
Best Answer