title: Problems using Matlab function eps2pdf
body: <p>I have a Matlab script where I produce a figure, and then create an eps file in my current directory using the command
  print('myFile','-depsc'). Immediately following, I have: mypdf = eps2pdf('myFile').</p>
  
  <p>I get the error message that 'Error while creating temporary eps file: ..... cannot be accessed or does not exist'.</p>
  
  <p>Has anyone had a similar problem?  Any suggestions what I might be doing wrong?  I'm using Ubuntu and Matlab 2017a.</p>
  
  <hr>
  
  <p>Here is an example code that I type into the command line.  I get the error message which I stated above.</p>
  
  <hr>
  
  <pre><code>figure()
  plot(linspace(1,100),linspace(1,100)) %Simple line
  print('my_plot','-depsc')  %Create eps file.
  mypdf = eps2pdf('my_plot'); %Should produce mypdf in my current directory.
  &lt;error message prints&gt;
  </code></pre>
  
  <hr>