Skip to main content
1-Visitor
Question

getting the mean of a submatrix

Hello all,

I have a matrix of vectors. I plotted one of the vectors below.

Can someone tell me the "proper" or most elegant way of calculating the mean of the values?
I have a mild flu and it's hard for me to concentrate, so I thought someone could nudge me along

TIA

powers.PNG

10 replies

Werner_E
25-Diamond I

Its not absolutely clear to me which mean of which values you are looking for.

Maybe you can setup a simplified sheet and post it here and tell us the desired result.

Translate
1-Visitor

Here are a few possibilities:

Translate
JasonC1-VisitorAuthor
1-Visitor

I have a 1x7 matrix of 10x1 matrices. (below)
I'd like the mean of say, the 5th element (cue Mila Jovovich ) of the 10-element matrices.

matrix.png

Translate
23-Emerald V

This should do what you want, and possibly more:

Success!

Luc

Translate
Werner_E
25-Diamond I

Here are some ways to calculate the one or the other mean value:

Translate
JasonC1-VisitorAuthor
1-Visitor

OK guys, it seems that there isn't a one-liner way to do what I need; a procedure needs to be written.


Thanks ll

Translate
23-Emerald I

I can do it in two steps:

Translate