I am assuming that you want to separate the vector “y” into 8 segments with 1560 samples each. This may be directly indexed from the “y” vector
For instance, the first segment can be indexed as “y(1:1560)” and the next segment can be indexed as “y(1561:3120)”
A generalized code can be written as follows:
y_segment = zeros(8,1560);
for k = 1:8
y_segment(k,:) = y((k-1)*1560 + 1: k*1560);
end
And the remaining samples can be discarded. Now the subsequent operations may be performed on each row of the “y_segment” matrix.