|
Markus Buehren <mb_matlab.REMOVE@gmxthis.de> wrote:
> Hi,
>
> I am starting to work with the Matlab engine, i.e. calling Matlab from a
C program.
>
> How can I find out in Matlab if it is started by "engOpen" or not? I need
this information, because in my startup.m, a question dialog is opened
(asking me which project I want to work on) waiting for me clicking a
button. This dialog pops up when starting Matlab normally as well as when
calling engOpen.
>
Which platform are you running on? I am not sure about the Windows
implemenmtation, but on all Unix platforms the engine is essentially a
wrapper around a standard MATLAB, and there really is no difference. It
simply takes care of stdin and stdout for you.
Perhaps the simplest thing would be to modify your startup.m. Maybe you
could invoke the project dialog manually if required.
--
Dr Tristram J. Scott
Energy Consultant
|