Thread Subject: Matlab engine running scripts

Subject: Matlab engine running scripts

From: Chris

Date: 10 Apr, 2008 23:16:02

Message: 1 of 2

I am running the matlab engine from a c++ program with no
problems as long as I eval a default matlab script like
imagesc or fft. scripts of my own like dosomething.m will
not eval. I did try making it a function and then eval and
also just eval. Do I need to dll the script as well?

Thanks for all your help

Chrisk

Subject: Matlab engine running scripts

From: James Tursa

Date: 11 Apr, 2008 00:32:02

Message: 2 of 2

"Chris " <chrisk@lobo.net> wrote in message
<ftm73i$enp$1@fred.mathworks.com>...
> I am running the matlab engine from a c++ program with no
> problems as long as I eval a default matlab script like
> imagesc or fft. scripts of my own like dosomething.m
will
> not eval. I did try making it a function and then eval
and
> also just eval. Do I need to dll the script as well?
>
> Thanks for all your help
>
> Chrisk

Two things.

First, the MATLAB engine starts up in the default startup
directory, which in general may not be the same directory
as your C++ program. Are you sure the script runs when you
type in the name from the MATLAB startup directory?

Second, why do you think the script is not running? Does
it produce some variables that you can't get after you try
to run it, or plots that don't come up? Did you double
check the spelling of your script name?

James Tursa

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
engine scripts Chris 10 Apr, 2008 19:20:05
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com