How do I divide matrix elements by column sums in MATLAB?

Viewed 18066

Is there an easy way to divide each matrix element by the column sum? For example:

input:

1  4

4  10

output:

1/5  4/14

4/5  10/14
3 Answers
Related