필터 지우기
필터 지우기

How to accumulate column vectors?

조회 수: 2 (최근 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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by