フィルターのクリア

sum of each column of matrix

1 回表示 (過去 30 日間)
Berbia
Berbia 2013 年 1 月 8 日
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??

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 8 日
編集済み: Azzi Abdelmalek 2013 年 1 月 8 日
A=rand(300,200);
out=sum(A)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by