Data import and analysis detrend Removes the polynomial trend. movmad The moving average is the absolute deviation. xcorr The cross-correlation function.