sum of each column of matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 8 Jan. 2013
Bearbeitet: Azzi Abdelmalek
am 8 Jan. 2013
A=rand(300,200);
out=sum(A)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!