MATLAB: Moving average moving average Greetings, I have a 3000×1 matrix and I want make it 30×1 matrix by taking average from each 100 values. Is there any simple command or way to do that. Your help is highly appreciated. Thanks and regards Shafi Best Answer x = mean(reshape(y,[],30)).' %y is 3000 x 1 Related SolutionsMATLAB: Stuck with simple matrix calculation, can you help B=A.*V;SumA=sum(sum(A));if SumA~=0 C=sum(sum(B))/SumA;end MATLAB: Using find function output locations to sum over values from another matrix. idx = M(:,:,1) == 1;s1 = sum(sum(M(:,:,2).*idx));s2 = sum(sum(M(:,:,3).*idx)); Related QuestionFunction for Calculating Moving sumAveraging Every 5 Elements in a Matrix for Each Column with NansIs there any function like movstd in R2015Sum over part of array without knowing array sizeWhat is Arithmetic mean filter
Best Answer