summing element is a cell
1 回表示 (過去 30 日間)
古いコメントを表示
I have a 1x50 cell 'c', where each element in the cell is a nxn matrix, how can I sum all 50 matrices (c{1}+c{2}+c{3}+.....c{50}) without a loop?
1 件のコメント
Jos (10584)
2019 年 3 月 8 日
"without a loop". Why?
Loops are efficient and easy and sometime the best option :-)
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!