Skip to main content
1-Visitor
February 1, 2017
Question

getting the mean of a submatrix

  • February 1, 2017
  • 10 replies
  • 3709 views

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

25-Diamond I
February 1, 2017

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.

1-Visitor
February 1, 2017

Here are a few possibilities:

JasonC1-VisitorAuthor
1-Visitor
February 2, 2017

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

23-Emerald IV
February 2, 2017

This should do what you want, and possibly more:

Success!

Luc

25-Diamond I
February 3, 2017

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

JasonC1-VisitorAuthor
1-Visitor
February 3, 2017

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

23-Emerald I
February 3, 2017

I can do it in two steps: