Quick MATLAB question. What would be the best/most efficient way to select a certain number of elements, \'n\' in windows of \'m\'. In other words, I want to select the fir
To complement Kerrek's answer: if you want to do it in a loop, you can use something like
n = 50 m = 10; for i=1:m:length(v) w = v(i:i+n); % Do something with w end