sum of each column of matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 8 Jan 2013
Modifié(e) : Azzi Abdelmalek
le 8 Jan 2013
A=rand(300,200);
out=sum(A)
0 commentaires
Plus de réponses (0)
Voir également
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!