How do you average vectors in a cell array?

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by