I would like to iterate trough an array and for each interation store a specific range...like this:
CompleteRange = [5; 34; 6; 34; 67; 4; 6; 234; 6; 26; 246; 31; 43];
RangeWidow = 3;
for m = 0 : CompleteRange -1
Range = CompleteRange(m...RangeWindow...??
end
The array "Range" should be during the first iteration (m=0): 5; 34; 6. Or for example during the third iteration (m=2): 6; 234; 6.
Could you please complete the code line within the for loop?
Thanks for your help!
Edit 1 as requested, expected Output:
Range: 5
34
6
Range: 34
67
4
Range: 6
234
6
Range: 26
246
31