
function [ normalized_matrix ] = normalize_matrix_rows(in_mat)
%
[ m, n ] = size(in_mat);

col_sum = sum(in_mat, 2); 

for i = 1:n
    normalized_matrix(:,i) = in_mat(:,i) ./ col_sum;
end 


