title: Matlab editor won't save function
body: <p>I have a function named <code>ProbFinder.m</code> that runs perfectly. However, when I want to edit it, I receive an error:</p>
  
  <pre><code>'Error writing ProbFinder.m.
  [Error writes out the file path here] (The process cannot access the file because it is being used by another process)'
  </code></pre>
  
  <p>MATLAB <em>does</em> let me save the function as <code>ProbFinder_2.m</code>, but if I want to edit it again I receive the same error and must name it <code>ProbFinder_3.m</code>, and so forth.</p>
  
  <p>The error doesn't just occur for this function. I've been writing code for a few weeks and it is the same for every file. Restarting MATLAB or the computer doesn't fix it, it always tells me that the file is being used by another process.</p>
  
  <p>I've seen other people with the same error, but their's are caused by a command within the text that tries to access a file, and the error only shows up when they <em>run</em> the function, while mine shows up just trying to edit it.</p>
  
  <p>Does anybody have any idea what's causing the problem or a way to fix it?</p>