%% Specify Normalization for Moving Standard Deviation
% Compute the three-point centered moving standard deviation of a row vector and normalize each standard deviation by the number of elements in the window.

A = [4 8 6 -1 -2 -3 -1 3 4 5];
M = movstd(A,3,1)

% Copyright 2012 The MathWorks, Inc.