<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264192</link>
    <title>MATLAB Central Newsreader - how to access results in Matlab from shell</title>
    <description>Feed for thread: how to access results in Matlab from shell</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 27 Oct 2009 05:37:02 -0400</pubDate>
      <title>how to access results in Matlab from shell</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264192#689941</link>
      <author>Jiaquan Huo</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I read on MATLAB Central about something like&lt;br&gt;
&lt;br&gt;
result=$(echo &quot;3+3&quot;|matlab) to have the result of 3+3 calculated in matlab in the variable result in bash. I tried it on my Cygwin, but can't get 6 in the variable result.&lt;br&gt;
&lt;br&gt;
With 'result=$(echo &quot;3+3&quot;|matlab), MATLAB is just not doing any calculation.&lt;br&gt;
&lt;br&gt;
With 'result=$(echo &quot;3+3&quot;| matlab -r), MATLAB calculates 3+3, but the result is not returned in result.&lt;br&gt;
&lt;br&gt;
What have I done wrong here?&lt;br&gt;
&lt;br&gt;
Thanks for any advice in advance.&lt;br&gt;
&lt;br&gt;
Jiaquan</description>
    </item>
  </channel>
</rss>

