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

后端 未结 3 2266
借酒劲吻你
借酒劲吻你 2020-12-01 06:54

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条回答
提交回复
热议问题