Publisher review:moving average smooths a timeseries or a matrix (with/without NaN's) via recursive moving average method. MOVING_AVERAGE(X,F) smooths the vector data X with a boxcar window of size 2F 1, i.e., by means of averaging each element with the F elements at his right and the F elements at his left. The extreme elements are also averaged but with less data, obviously. Leaving the ends intact. The method is really fast. MOVING_AVERAGE2(X,M,N) smooths the matrix X with a boxcar window of size (2M 1)x(2N 1), i.e., by means of averaging each element with their surrounding elements that fit in the mentioned box centered on him. This one is also really fast. The elements at the edges are averaged too. NANMOVING_AVERAGE(X,F) or NANMOVING_AVERAGE(X,F,'interpNaN') accept NaN's elements in the vector X; the latter smooths also those NaN elements surrounded by numeric elements. NANMOVING_AVERAGE2(X,M,N) or NANMOVING_AVERAGE2(X,M,N,'interpNaN') accept elements NaN's in the matrix X; the latter smooths also those NaN elements surrounded by numeric elements. Requirements: ยท MATLAB Release: R14
moving average is a Matlab script for Signal Processing scripts design by Carlos Adrian Vargas Aguilera.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris