Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

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, vjp2.at@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?
> - = -
> Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
> http://www.panix.com/~vjp2/vasos.htm
> ---{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]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.