Find a mean value for specific rows?

조회 수: 16 (최근 30일)
Ilkin Abdullayev
Ilkin Abdullayev 2020년 5월 19일
댓글: Ilkin Abdullayev 2020년 5월 19일
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일
편집: 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