Find a mean value for specific rows?

4 visualizaciones (últimos 30 días)
Ilkin Abdullayev
Ilkin Abdullayev el 19 de Mayo de 2020
Comentada: Ilkin Abdullayev el 19 de Mayo de 2020
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.

Respuesta aceptada

Abdolkarim Mohammadi
Abdolkarim Mohammadi el 19 de Mayo de 2020
Editada: Abdolkarim Mohammadi el 19 de Mayo de 2020
To find the mean for specific rows of matrix A:
MyMean = mean (A(:,(100:120)),2);

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by