sum of each column of matrix
1 回表示 (過去 30 日間)
古いコメントを表示
I need to create a vector from a matrix by adding each column elements to form a corresponding vector component. matrix columns are fixed dimension 200. My result should be a row vector of dimension 200. How to do it simply in matlab??
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 1 月 8 日
編集済み: Azzi Abdelmalek
2013 年 1 月 8 日
A=rand(300,200);
out=sum(A)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!