How can I read from a text file

1 vue (au cours des 30 derniers jours)
moji
moji le 17 Juin 2014
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Standard File Formats dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by