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 » Software » comp.soft-sys.matlab

Topic: calculating seperate means in a large matrix
Replies: 1   Last Post: Dec 6, 2012 1:11 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,944
Registered: 12/7/04
Re: calculating seperate means in a large matrix
Posted: Dec 6, 2012 1:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



"Jacob Moses" <jacobfmoses@gmail.com> wrote in message
news:k9qjhg$2rs$1@newscl01ah.mathworks.com...
> Hello,
> I am working on a project that, without going into unnecessary detail,
> requires me to calculate the mean of each row in a 64,500x17 matrix. The
> eventual aim is to populate a 17x1 vector for use in kmeans. My instructor
> does not want me to use a for statement for efficiency reasons. I am
> thinking of splitting the matrix into 17 64,500x1 vectors, but I am not
> sure of how to do this, or if there's another, more efficient way. Any
> help would be greatly appreciated.


Use the DIM input argument for MEAN.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




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

[Privacy Policy] [Terms of Use]

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