Hi
I have One Cell with 500 columns,
you can see the part of it :
I need the Sum of columns from my cell. it means : 49 + 64 + 209 + .... +127
How can i calculate it by Matlab code?

 채택된 답변

Guillaume
Guillaume 2015년 2월 5일

1 개 추천

If you mean you want the sum of the number of elements in each cell of cell array c:
sum(cellfun(@numel, c))

추가 답변 (0개)

카테고리

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

태그

질문:

2015년 2월 5일

댓글:

2015년 2월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by