Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


ms
Posts:
61
Registered:
11/6/06


Adding point by point using a cell matrix
Posted:
Jun 9, 2010 4:14 PM


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.



