Means in multiple tables

1 view (last 30 days)
Josh
Josh on 15 Nov 2015
Commented: Rena Berman on 12 Jan 2017
I have twenty five unique 20x30 variables. They are named u1, u2, u3, ... u25. I would like to calculate the mean of the i'th entry in each and place it in the i'th entry of a variable u_mean, also 20x30. For example, I want to take the mean of the 33rd (arbitrary number) entry of each variable (mean of 25 numbers, one from each variable) and make that mean the 33rd entry in u_mean.
I am assuming that it is possible/applicable to use linear indexing to reference the 600 values opposed to row,column.
I have tried nesting a for loop within another for loop to vary both the variable name and entry number, but was unable to come up with a solution.
Thank you in advance.

Accepted Answer

Walter Roberson
Walter Roberson on 15 Nov 2015

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!