sum of doubles into cell arrays

16 Ansichten (letzte 30 Tage)
Mori
Mori am 13 Jul. 2016
Bearbeitet: the cyclist am 13 Jul. 2016
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

Akzeptierte Antwort

the cyclist
the cyclist am 13 Jul. 2016
Bearbeitet: the cyclist am 13 Jul. 2016
B = cellfun(@(x)cellfun(@(y)sum(y),x,'UniformOutput',false),A,'UniformOutput',false)

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by