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: taking the mean of a matrix
Replies: 2   Last Post: Dec 5, 2012 6:43 PM

Advanced Search

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

Posts: 1
Registered: 12/5/12
taking the mean of a matrix
Posted: Dec 5, 2012 6:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am trying to figure out how to make a for loop that will take the mean of every, say n values, of a single column matrix...

So say I have a matrix that is b(54,1), and I make n = 4, I want the loop to take the mean of values 1-4, 5-8, 9-12, and so on.

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.