title: How to read many sound files in Matlab with a for loop?
body: <p>I want to read many wave files (.wav) one after another. I tried this code but matlab produces error message </p>
  
  <pre><code>can not open file
  </code></pre>
  
  <p>if n = number of wavefiles</p>
  
  <pre><code>for i=1:n 
  [x,fs]=wavread('e:\database\i') ;
  y(i,:)=x;
  end
  </code></pre>
  
  <p>matlab consider it as filename not as variable, how can I write i as variable?</p>
  
  <p>thanks </p>