Update avgIntensityTimecourse2.m