title: Unable to write file
body: <p>I'm trying to write an image in <code>MATLAB</code>, but got the following error:</p>
  
  <blockquote>
    <p>Error using imwrite (line 455) Unable to open file "D1.bmp" for
    writing.  You may not have write permission.</p>
  </blockquote>
  
  <p>Why is that? How can I go around this error?</p>