AutoCorr:

--------------------------------------------------------------------------
   Generates the autocorrelation function for the input sequence.

   Since version 1.
--------------------------------------------------------------------------
   Form:
   r = AutoCorr( x, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x                   Input sequence
   n                   1st n samples to be used. If omitted use half.

   -------
   Outputs
   -------
   r                   Autocorrelation

--------------------------------------------------------------------------
	Reference: Brown R.G. and P.Y.C. Hwang (1992). Introduction to Random
   Signals and Applied Kalman Filtering. John Wiley & Sons, New York. 114.
--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D