Borrar filtros
Borrar filtros

How do you average vectors in a cell array?

1 visualización (últimos 30 días)
L'O.G.
L'O.G. el 3 de Mayo de 2022
Comentada: Stephen23 el 4 de Mayo de 2022
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?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by