Hi, suppose i want to return vector B which is the average of the first n column of a vector A and the next n and so on. What should the algorithm be? For example here i take n=3, The vector A is the input, and B is the desired result. Thanks!
A = [1 1 1 2 2 2 5 5 8]
B = [1 2 6]