Clear Filters
Clear Filters

I have a 12090x1 data. I want to convert it into a 1209x1 data. In order to do that, I want the mean of data 1:10, 11:20, 21:30 and so on. How should I do that?

1 view (last 30 days)
I have a 12090x1 data. I want the to convert it into a 1209x1 data. In order to do that, I want the mean of data 1:10, 11:20, 21:30 and so on till end. How should I do that?

Accepted Answer

Walter Roberson
Walter Roberson on 1 Apr 2018
mean(reshape(YourMatrix, 10, [])) .'

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!