<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167357</link>
    <title>MATLAB Central Newsreader - Matlab engine running scripts</title>
    <description>Feed for thread: Matlab engine running scripts</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>Thu, 10 Apr 2008 23:16:02 -0400</pubDate>
      <title>Matlab engine running scripts</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167357#425990</link>
      <author>Chris </author>
      <description>I am running the matlab engine from a c++ program with no&lt;br&gt;
problems as long as I eval a default matlab script like&lt;br&gt;
imagesc or fft.  scripts of my own like dosomething.m will&lt;br&gt;
not eval.  I did try making it a function and then eval and&lt;br&gt;
also just eval.  Do I need to dll the script as well?&lt;br&gt;
&lt;br&gt;
Thanks for all your help&lt;br&gt;
&lt;br&gt;
Chrisk</description>
    </item>
    <item>
      <pubDate>Fri, 11 Apr 2008 00:32:02 -0400</pubDate>
      <title>Re: Matlab engine running scripts</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167357#426005</link>
      <author>James Tursa</author>
      <description>&quot;Chris &quot; &amp;lt;chrisk@lobo.net&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ftm73i$enp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I am running the matlab engine from a c++ program with no&lt;br&gt;
&amp;gt; problems as long as I eval a default matlab script like&lt;br&gt;
&amp;gt; imagesc or fft.  scripts of my own like dosomething.m &lt;br&gt;
will&lt;br&gt;
&amp;gt; not eval.  I did try making it a function and then eval &lt;br&gt;
and&lt;br&gt;
&amp;gt; also just eval.  Do I need to dll the script as well?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for all your help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Chrisk&lt;br&gt;
&lt;br&gt;
Two things.&lt;br&gt;
&lt;br&gt;
First, the MATLAB engine starts up in the default startup &lt;br&gt;
directory, which in general may not be the same directory &lt;br&gt;
as your C++ program. Are you sure the script runs when you &lt;br&gt;
type in the name from the MATLAB startup directory?&lt;br&gt;
&lt;br&gt;
Second, why do you think the script is not running? Does &lt;br&gt;
it produce some variables that you can't get after you try &lt;br&gt;
to run it, or plots that don't come up?  Did you double &lt;br&gt;
check the spelling of your script name?&lt;br&gt;
&lt;br&gt;
James Tursa</description>
    </item>
  </channel>
</rss>

