fixed bug in PCA_moving_avg.m