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 ]
Eli Osherovich

Posts: 37
Registered: 6/5/05
Re: dumb matrix question
Posted: Apr 26, 2011 8:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 04/22/2011 04:54 AM, 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?
> - = -
> Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
> ---{Nothing herein constitutes advice. Everything fully disclaimed.}---
> [Homeland Security means private firearms not lazy obstructive guards]
> [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]

Another two option can be:




You can replace sum(a') with sum(a, 2) (which one is better depends on
Matlab's internals).

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.