%% Normalized Autocovariance of Noise
% Compute and plot the estimated autocovariance of white Gaussian noise, c(m), for -10 \le m \le 10. Normalize the sequence so that it is unity at zero lag.

rng default
x = randn(1000,1);
maxlag = 10;
[c,lags] = xcov(x,maxlag,'normalized');
stem(lags,c)

% Copyright 2018 The MathWorks, Inc.