<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/272380</link>
    <title>MATLAB Central Newsreader - Saving rendered figures offscreen via ssh</title>
    <description>Feed for thread: Saving rendered figures offscreen via ssh</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2010 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 09 Feb 2010 08:17:02 -0500</pubDate>
      <title>Saving rendered figures offscreen via ssh</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/272380#715247</link>
      <author>paul </author>
      <description>Hi.  I am trying to create avi movies using fairly high resolution figures rendered remotely over an ssh tunnel.  Ssh -X does not work because it takes too long for the rendering to take place, and besides, what I'd really like to do is not have the figures displayed at all--I just want the final movie saved into the current directory. I've been using&lt;br&gt;
&lt;br&gt;
F(i) = getframe(gcf)&lt;br&gt;
&lt;br&gt;
inside a loop, and then&lt;br&gt;
&lt;br&gt;
movie2avi(F,'moviename')&lt;br&gt;
&lt;br&gt;
after the loop is complete. This works fine on-site (aside from tying up the display for long periods of time,)  but I'd really like to perform this operation remotely in the background, or even to pipe the command to MatLab via a bash script, again in the background.  I even tried using saveas() to simply save .png images that I could convert later, but the rendering appears to be too much for MatLab. Any suggestions?</description>
    </item>
    <item>
      <pubDate>Tue, 09 Feb 2010 10:17:05 -0500</pubDate>
      <title>Re: Saving rendered figures offscreen via ssh</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/272380#715269</link>
      <author>Oliver Woodford</author>
      <description>&quot;paul &quot; &amp;lt;surface.form@yahoo.com&amp;gt; wrote in message &amp;lt;hkr5lu$9mi$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi.  I am trying to create avi movies using fairly high resolution figures rendered remotely over an ssh tunnel.  Ssh -X does not work because it takes too long for the rendering to take place, and besides, what I'd really like to do is not have the figures displayed at all--I just want the final movie saved into the current directory. I've been using&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; F(i) = getframe(gcf)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; inside a loop, and then&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; movie2avi(F,'moviename')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; after the loop is complete. This works fine on-site (aside from tying up the display for long periods of time,)  but I'd really like to perform this operation remotely in the background, or even to pipe the command to MatLab via a bash script, again in the background.  I even tried using saveas() to simply save .png images that I could convert later, but the rendering appears to be too much for MatLab. Any suggestions?&lt;br&gt;
&lt;br&gt;
When you ssh in, is MATLAB running with the JVM, or just in a shell? If it's the latter then it won't work, because you can't have any figures. If it's the former then you can use print.</description>
    </item>
  </channel>
</rss>
