Effacer les filtres
Effacer les filtres

sum of each column of matrix

1 vue (au cours des 30 derniers jours)
Berbia
Berbia le 8 Jan 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??

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 8 Jan 2013
Modifié(e) : Azzi Abdelmalek le 8 Jan 2013
A=rand(300,200);
out=sum(A)

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by