title: It is possible to obtain the mean of different files to make some computations with it after?
body: <p>I have a code to calculate the mean of the first five values of each column of a file, for then use these values as a reference point for all set. The problem is that now I need to do the same but for many files. So I will need to obtain the mean of each file to then use these values again with the originals files. I have tried in this way but I obtain an error. Thanks.</p>
  
  <pre><code>%%% - Loading the file of each experiment
  myfiles = dir('*.lvm');     % To load every file of .lvm
  
  for i = 1:length(myfiles)   % Loop with the number of files
      files=myfiles(i).name;
      mydata(i).files = files;
      mydata(i).T = fileread(files);
      arraymean(i) = mean(mydata(i));
  end
  </code></pre>
  
  <p>The files that I need to compute are more or less like this:</p>
  
  <pre><code>Delta_X 3.000000    3.000000    3.000000
  ***End_of_Header*** 
  X_Value C_P1N1  C_P1N2  C_P1N3
  0.000000    -0.044945   -0.045145   -0.045705
  0.000000    -0.044939   -0.045135   -0.045711
  3.000000    -0.044939   -0.045132   -0.045706
  6.000000    -0.044938   -0.045135   -0.045702
  </code></pre>