sum of doubles into cell arrays

1 回表示 (過去 30 日間)
Mori
Mori 2016 年 7 月 13 日
編集済み: the cyclist 2016 年 7 月 13 日
I have a cell, called A with 1*7 cell, then each cell has 1*3 other cells and each of them has 10* 1300 doubles.
I want cell B with 1*7 cell, each cell has 1*3 cell and each of them has sum of columns (1*1300).
  1. Thanks

採用された回答

the cyclist
the cyclist 2016 年 7 月 13 日
編集済み: the cyclist 2016 年 7 月 13 日
B = cellfun(@(x)cellfun(@(y)sum(y),x,'UniformOutput',false),A,'UniformOutput',false)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by