Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Adding point by point using a cell matrix
Replies: 9   Last Post: Jun 14, 2010 11:10 AM

 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

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.

Date Subject Author
6/9/10 ms
6/9/10 sscnekro
6/9/10 sscnekro
6/10/10 ms
6/10/10 ms
6/10/10 sscnekro
6/13/10 ms
6/14/10 sscnekro
6/14/10 sscnekro
6/14/10 Sebo K