How to accumulate column vectors?

3 vues (au cours des 30 derniers jours)
Bless
Bless le 9 Fév 2013
I have N column vectors of same dimensions and I'm in need to accumulate these column vectors. In my paper this accumulation is defined as
acc=Vi where i=1:N
How to do this??
  2 commentaires
Matt J
Matt J le 9 Fév 2013
This probably needs some clarification, maybe because your sigma summation symbol does not show the range of the summation. Is this not simply the sum of N vectors? Why do you call this "accumulation" instead of just "summation"?
Bless
Bless le 9 Fév 2013
Modifié(e) : Bless le 9 Fév 2013
I've to accumulate the vector V over i. where i=1:N.The range of sigma is 1:N(some integer) I have N column vectors. Is it correct to use sum(v,2)??

Connectez-vous pour commenter.

Réponse acceptée

Matt J
Matt J le 9 Fév 2013
Modifié(e) : Matt J le 9 Fév 2013
If you have the Vi as columns of some matrix, V, just do
acc=sum(V,2);

Plus de réponses (0)

Catégories

En savoir plus sur Elementary Math 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