Given vector \(V\) of length \(m\) ﬁnd the mean of segments \(V(1:n),V(n+1:2n),V(2n+1:3n)\dots \). In otherwords, equal length segments.
Matlab N = 52; n = 4; V = rand(N,1); mean(reshape(V,n,N/n))'

ans = 0.3026 0.3589 0.4745 0.6249 0.3042 0.5428 0.2387 0.3200 0.6224 0.4408 0.5657 0.5469 0.5696 