title: Saving data to file in different path in Matlab
body: <p>I am trying to save some data from current workspace in Matlab to a different folder. I tried using </p>
  
  <pre><code> save('c:\stp\vtp\train.txt','data','-ASCII');
  </code></pre>
  
  <p>where data is a double matrix. It gives me error message</p>
  
  <pre><code>??? Error using ==&gt; save
  Unable to write file c:\stp\vtp\train.txt: No such file
  or directory.
  </code></pre>
  
  <p>I tried using fullfile syntax, even then it is the same case. My current working folder is in different path.</p>