title: Including variable in file directory in matlab ..?
body: <p>I want to access several sequenced folders</p>
  
  <p>Example :</p>
  
  <pre><code>[ndata, text, alldata] = xlsread(' D: \ folder \ 1 \ file ' ) ;
  [ndata, text, alldata] = xlsread(' D: \ folder \ 2 \ file ' ) ;
  [ndata, text, alldata] = xlsread(' D: \ folder \ 3 \ file ' ) ;
  [ndata, text, alldata] = xlsread(' D: \ folder \ 4 \ file ' ) ;
  </code></pre>
  
  <p>Could I replace 1,2,3and 4 by variable i .. How could the directory be written here ?!</p>
  
  <p>Please need any recommendation ! </p>