Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Sample Matlab Engine Doesn't Work?
Date: Thu, 13 Mar 2008 11:59:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 37
Message-ID: <frb4u5$9nu$1@fred.mathworks.com>
References: <fr9ihp$nfk$1@fred.mathworks.com> <64iht3dv5ou8htupbb01sr7t3majehnhju@4ax.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205409541 9982 172.30.248.38 (13 Mar 2008 11:59:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Mar 2008 11:59:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:456988



Oh man! Really sorry for the dumb mistake. I guess it's good
to know that is the case for the future when my commands are
more than 10 characters hahaha.

Thanks for the help.

David

James Tursa <aclassyguywithaknotac@hotmail.com> wrote in
message <64iht3dv5ou8htupbb01sr7t3majehnhju@4ax.com>...
> On Wed, 12 Mar 2008 21:39:05 +0000 (UTC), "David Doria"
> <daviddoria@gmail.com> wrote:
> 
> >	engEvalString(ep, "x = 1:1:10);");
> 
> Typo, extra paren, this should be:
> 
> 	engEvalString(ep, "x = 1:1:10;");
> 
> The problem with using engEvalString is you don't get any
feedback
> that your string is invalid. There is a heavy burdon on
the programmer
> to examine the string carefully to make sure it is valid
syntax, the
> variables used are in existence, names are spelled
correctly, etc.
> etc. etc. It is good practice to copy & paste these
strings into the
> MATLAB workspace one by one to see that they do in fact
work as
> expected. This avoids wasting time trying to track down a
non-existent
> coding error in the C++ code itself.
> 
> James Tursa