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);
  1 件のコメント
Ilkin Abdullayev
Ilkin Abdullayev 2020 年 5 月 19 日
Thanks a lot.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by