sum of doubles into cell arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
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).
- Thanks
댓글 수: 0
채택된 답변
the cyclist
2016년 7월 13일
편집: the cyclist
2016년 7월 13일
B = cellfun(@(x)cellfun(@(y)sum(y),x,'UniformOutput',false),A,'UniformOutput',false)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!