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

Contact us at files@mathworks.com