So, say you have a row vector of 950 values. And you want to find the multiplication between 2 terms 23 elements apart, like 1 and 24, 2 and 25, 3 and 26 etc until 927 and 950. How can this be done?
I have written a for loop but it gives me an error.
for i = 1:950
var = array(i+23)*array(i)
Index of array exceeds 950
Any help would be greatly appreciated. Thanks.