Find a mean value for specific rows?

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

采纳的回答

Abdolkarim Mohammadi
编辑:Abdolkarim Mohammadi 2020-5-19
To find the mean for specific rows of matrix A:
MyMean = mean (A(:,(100:120)),2);

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by