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?

14 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by