MATLAB: How to accumulate column vectors

accumulation of vector

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??

Best Answer

If you have the Vi as columns of some matrix, V, just do
acc=sum(V,2);
Related Question