6.29 How to do autocorrelation

v = {1, 2, 3}; 
ListCorrelate[v, v, {-1, 1}, 0] 
 
Out[139]= {3, 8, 14, 8, 3}
 

In Matlab it is

v=[1,2,3] 
xcorr(v,v) 
 
ans = 
     3     8    14     8     3