ones(1,n) to ones(n)