sum of each column of matrix
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 8 de En. de 2013
Editada: Azzi Abdelmalek
el 8 de En. de 2013
A=rand(300,200);
out=sum(A)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!