Azzera filtri
Azzera filtri

How do you average vectors in a cell array?

1 visualizzazione (ultimi 30 giorni)
A cell array of vectors of type double, say:
1 x 10000
1 x 10000
1 x 10000
How do you average the values into one array 1 x 10000?

Risposta accettata

Voss
Voss il 3 Mag 2022
If they're really all row vectors of the same length like that, then:
mean(vertcat(C{:}))
where C is the cell array.

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by