MOVING will compute moving averages of order n (best taken as odd)
where x is the input vector (or matrix) to be smoothed.
m is number of points to average over (best odd, but even works)
y is output vector of same length as x
fun (optional) is a custom function rather than moving averages
Note:if x is a matrix then the smoothing will be done 'vertically'.
legend('x','7pt moving mean','7pt moving median','7pt moving max','location','best')