I would like to analise segmented microelectrode recording data. I found an article which describe artifat removal. For that I need to calculate the variance of autocovariance for each epochs. It provides the formula, but I don't really know which function stands for it in matlab. The formula is on the picture below.