title: how to use save wav files to current subdirectory in matlab?
body: <p>My current directory is under C, for example, "C:\xxx\"</p>
  
  <p>Now, I want to export my processed wav files to a subfolder in my current directory, for example, "\wav_results\".</p>
  
  <p>What I have done is declaring a filepath variable:</p>
  
  <pre><code>wav_dir = '\wav_results\';
  wavwrite(...., [wav_dir wav_name]) %wav_name is the name of the wav file
  </code></pre>
  
  <p>The error says no such file or directory. I do not want to use the full directory path for wav_dir because I need to move this script from place to place. Anyone has good suggestion?</p>
  
  <p>Thanks~</p>