How do you average vectors in a cell array?

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일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2022년 5월 3일

댓글:

2022년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by