I\'m trying to implement this in Matlab enter image description here
```
function [y]=autocorr(x,N,Tm) % [AC] x: input signal %