Borrar filtros
Borrar filtros

sum of each column of matrix

1 visualización (últimos 30 días)
Berbia
Berbia el 8 de En. de 2013
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??

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 8 de En. de 2013
Editada: Azzi Abdelmalek el 8 de En. de 2013
A=rand(300,200);
out=sum(A)

Más respuestas (0)

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!

Translated by