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??

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-8
编辑:Azzi Abdelmalek 2013-1-8
A=rand(300,200);
out=sum(A)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by