I have the following code:
days = [152:272]; %n = 120
PA = [0 0 0 0 1 1 1 1….1 0]; % 1 or 0 for each of the 120 day time series
I would like to shade the back of the plot blue when PA = 1 and yellow when PA = 0
I am going to plot another line in front of the color patches.
Best Answer