modified compute_mean_time_course.m to use SWA longer than 5 mins