title: I am encountering an error while using imwrite
body: <p>I am new to image processing and what I am trying to do is resize an image and store it in tif format, but command window reports an error saying "you don't have the permission to write"</p>
  
  <p>my code is  <code>imwrite(B,'myNewFile.tif');</code>
  and after running it shows</p>
  
  <blockquote>
    <p>Error using imwrite (line 10)<br>
    Unable to open file "myNewFile.tif" for writing.  You may not have write permission.</p>
  </blockquote>
  
  <p>Do I have to create a file by the name <code>'myNewFile'</code> before writing the above code?</p>