title: Save Matlab invisible plot under terminal as an image with same size
body: <p>I am SSH connecting to a Linux server and do some MATLAB programming. I would like to save invisible plot as</p>
  
  <pre><code>figH = figure('visible','off') ;  
  % Plot something  
  % save the plot as an image with same size as the plot   
  close(figH) ;   
  </code></pre>
  
  <p><code>saveas()</code> and <code>print()</code> will change the size of the saved image different than the size of plot. Also for <code>print()</code>, all three renderer modes (<code>-opengl</code>, <code>-ZBuffer</code> and <code>-painters</code>) can not be used in terminal emulation mode on the Linux server. <code>getframe()</code> doesn't work either.
  I wonder how I can solve these problems? 
  Thanks and regards!</p>