How to average across tables in a cell

1 view (last 30 days)
MH
MH on 20 Aug 2024
Commented: Voss on 20 Aug 2024
I have a Cell containing a n number of tables (in this case 3 tables (2500x44)) and I'm trying output just one table being the average of each cell within each table across all 3 tables. This is likely a silly question but can't seem to figure it out.

Accepted Answer

Matt J
Matt J on 20 Aug 2024
Edited: Matt J on 20 Aug 2024
AvgTb=Tb{1};
AvgTb{1}{:,:}=(Tb{1}{:,:}+Tb{2}{:,:}+Tb{3}{:,:})/3;
  7 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!