How can I read from a text file

1 回表示 (過去 30 日間)
moji
moji 2014 年 6 月 17 日
回答済み: Image Analyst 2014 年 6 月 17 日
I have one column with 641 rows. I want to read rows number 1,2,12,22,23 and take the mean of all 5 numbers in these rows. How can I do this?

採用された回答

Image Analyst
Image Analyst 2014 年 6 月 17 日
theMean = (columnVector(1)+columnVector(2)+columnVector(12)+columnVector(22)+columnVector(23))/5;
It's pretty basic - am I missing something?

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by