# Normalize vector

Hello

I have column vectors stored in a matrix M. How do i normalize each vector ? I have tried

normalize(M.col(i), M.col(i)); reduce(M, sum, 0, CV_REDUCE_SUM, CV_32FC1);

But the results do not give me a 1 for every column. Help thanks