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 CenterFile Exchange에서 Standard File Formats에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by