title: How can I load 100 files with similar names and/or string in just one step in MATLAB?
body: <p>I have 100 ASCII files in my directory all named as follows:  </p>
  
  <blockquote>
    <p>int_001.ASC<br>
    int_002.ASC<br>
    int_003.ASC<br>
    .<br>
    .<br>
    .<br>
    int_099.ASC<br>
    int_100.ASC</p>
  </blockquote>
  
  <p>I have to import them in MATLAB all with importdata, which should work as follows:</p>
  
  <pre><code>A = importdata('int_001.ASC', ' ', 9)
  x = A.data(:,1)
  y = A.data(:,2)
  </code></pre>
  
  <p>My question is: how can I avoid writing 100 times <code>importdata</code>? Is there a way to write the first string only and then have all data uploaded?</p>
  
  <p>Thanks</p>