title: Loading batch files in MATLAB
body: <p>I want load many files from a directory that their names have a pattern such as: <strong><em>data_1</em></strong> &amp;  <strong><em>data_2</em></strong> , ... , that as mentioned, the numbers in each "data_" are as the same with the counter of the main <code>for</code> loop. </p>
  
  <p>How can I do this for matching the file names that are loading with the number of counter of the <code>for</code> loop. This is my imperfect code:</p>
  
  <pre><code>for i=1:100
  loadpath='./folder/data/';
   load('Label_i.mat');
  end
  </code></pre>