How to average across tables in a cell

1 Ansicht (letzte 30 Tage)
MH
MH am 20 Aug. 2024
Kommentiert: Voss am 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.

Akzeptierte Antwort

Matt J
Matt J am 20 Aug. 2024
Bearbeitet: Matt J am 20 Aug. 2024
AvgTb=Tb{1};
AvgTb{1}{:,:}=(Tb{1}{:,:}+Tb{2}{:,:}+Tb{3}{:,:})/3;
  7 Kommentare
MH
MH am 20 Aug. 2024
Thank you! @Voss
Voss
Voss am 20 Aug. 2024
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by