how i can sum the lines of a matrix?
4 ビュー (過去 30 日間)
古いコメントを表示
p.x
1 4 5 2 1 ...
3 1 9 3 2 ...
=
4 5 14 5 3
but with out knowing the number of lines or the number of rows
thanks
0 件のコメント
採用された回答
E K
2012 年 7 月 29 日
if a is a x-by-y matrix
b=sum(a) will give you a new b matrix which will be 1-by-y matrix which will have the summation of each column.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!