Plot data to a certain date with array
2 views (last 30 days)
Sorry I am new to coding! Apologies if this is a dumb question.
I a years worth of data and an array saying 1 when it is january and 0 when its not. I need to plot data only when its january, but im unsure how to work in the array into my plot.
Peter Perkins on 29 Nov 2021
Give this a try:
>> tt = timetable((1:365)','RowTimes',datetime(2021,1,1:365))
>> jan = tt.Time.Month == 1;