calculate the sum of cell's Columns?

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 ExchangeData 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