The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.num-analysis

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: dumb matrix question
Replies: 8   Last Post: May 12, 2011 3:14 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Greg Heath

Posts: 6,387
Registered: 12/7/04
Re: dumb matrix question
Posted: Apr 22, 2011 11:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Apr 21, 9:54 pm, 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.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.