Hello,
I have a data 500000x5 and I need to find a mean value of specific rows. For example the mean of the rows between 100 and 120.
Does anyone knows how to do this?
Thanks in advnace.

 Akzeptierte Antwort

Abdolkarim Mohammadi
Abdolkarim Mohammadi am 19 Mai 2020
Bearbeitet: Abdolkarim Mohammadi am 19 Mai 2020

0 Stimmen

To find the mean for specific rows of matrix A:
MyMean = mean (A(:,(100:120)),2);

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by