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 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2018-4-1
mean(reshape(YourMatrix, 10, [])) .'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by