sum of each column of matrix
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
Azzi Abdelmalek
on 8 Jan 2013
Edited: Azzi Abdelmalek
on 8 Jan 2013
A=rand(300,200);
out=sum(A)
0 Comments
More Answers (0)
See Also
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!