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: Adding point by point using a cell matrix
Replies: 9   Last Post: Jun 14, 2010 11:10 AM

Advanced Search

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

Posts: 61
Registered: 11/6/06
Adding point by point using a cell matrix
Posted: Jun 9, 2010 4:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a cell matrix that is 4x3. Each of the contents is 150x1...so
I have something like this:


[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]


I would like to add point by point along the rows for each cell and
then take the mean of the added rows, OR better yet, just take the
point by point mean of each row such that I end up with a new cell
that is 1x3. Something like this:
[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]
[150x1 double] [150x1 double] [150x1 double]
mean1 mean2 mean3
OR
new_cell =
[150x1 double] [150x1 double] [150x1 double]

%in which each double represents the mean of the original columns.

Any help would be appreciated. Thank you.



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.