function mx = winavg(a,N);


%a = rand(100,1);
%x = reshape(a,N,length(a)/N);

w = genHamming(N)';

wx = a.*w;
mx = sum(wx,1)/sum(w);

end
