Info
この質問は閉じられています。 編集または回答するには再度開いてください。
I have a cell matrix with arrays. Each row has a certain size matrix. I would like to add the matrices along the rows
1 回表示 (過去 30 日間)
古いコメントを表示
Given r={rand(3), rand(3);rand(2),rand(2)}, I want to get a row-wise sum of each size. cellfun and @sum lets you add arrays like that but seemingly, not matrices.
Is there a vectorized solution?
Also --- is it possible that sparse matrices make the operation slower?
1 件のコメント
Stephen23
2017 年 3 月 11 日
What is "a row-wise sum of each size" ?
Do you wish to sum each matrix along columns or rows?
回答 (0 件)
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!