% Demeaning operator

function x=demeaning(y)
T=size(y,1);
N=size(y,2);
my=repmat(mean(y),T,1);

x=(y-my);
