How to average across tables in a cell

3 visualizzazioni (ultimi 30 giorni)
MH
MH il 20 Ago 2024
Commentato: Voss il 20 Ago 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.

Risposta accettata

Matt J
Matt J il 20 Ago 2024
Modificato: Matt J il 20 Ago 2024
AvgTb=Tb{1};
AvgTb{1}{:,:}=(Tb{1}{:,:}+Tb{2}{:,:}+Tb{3}{:,:})/3;
  7 Commenti
Voss
Voss il 20 Ago 2024
You're welcome!

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by