|
|
Re: dumb matrix question
Posted:
Apr 22, 2011 11:07 AM
|
|
On Apr 21, 9:54 pm, vjp2...@at.BioStrategist.dot.dot.com wrote: > If I want to divide the elements of a row of a matrix by the sum of that row, > is there a simple MATRIX op (in MatLab) that will do this?
Can't think of any.
I premultiply by diag(1./(sum(A'))
Why didn't you post this question in comp.soft-sys.matlab or MATLAB Central?
Hope this helps.
Greg
|
|