jaobyccdee Messages 33 Reaction score 0 Thread starter Feb 16, 2012 #1 I have a 8000x600 Matrix called V. How can i add the colume 1,5,9,13,17... (all colume of (4*i+1) for i from 0 to 149) of the vector?
I have a 8000x600 Matrix called V. How can i add the colume 1,5,9,13,17... (all colume of (4*i+1) for i from 0 to 149) of the vector?
kai_sikorski Gold Member Messages 161 Reaction score 0 Feb 16, 2012 #2 Say that the matrix is called V Code: i = [0:149]*4 +1; sum(V(:,i)');