title: How to close file handle in matlab?
body: <p>My matlab code creates a new file and writes some stuff in it. I am using fclose() to release the file handle but for some reasons when I try to delete the created file after the program has completed execution, I get a file in use error.
  The file can be deleted once i close matlab.</p>
  
  <p>The problem is not permanent. I tried the same thing again without any changes and it works.</p>