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.
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.
Hi Scott, thanks for your answer. I was hoping that there is some mechanism like the function "isdeployed" which returns one if application generated by the Matlab compiler is started...
Markus
> 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.
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.