I have an array and I'm trying to make another array consisting of mean values of the first array.
I have some code i used to try and solve it myself using a for loop
b = 2;
for i = 1:10
d(:,i) = mean(A(b:c));
Any suggestions or changes would be much appreciarted as this code currently doesn't work.