How to accumulate column vectors?

1 回表示 (過去 30 日間)
Bless
Bless 2013 年 2 月 9 日
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 件のコメント
Matt J
Matt J 2013 年 2 月 9 日
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 2013 年 2 月 9 日
編集済み: Bless 2013 年 2 月 9 日
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)??

サインインしてコメントする。

採用された回答

Matt J
Matt J 2013 年 2 月 9 日
編集済み: Matt J 2013 年 2 月 9 日
If you have the Vi as columns of some matrix, V, just do
acc=sum(V,2);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by