|
"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
|