Thread Subject: Matlab engine

Subject: Matlab engine

From: Markus Buehren

Date: 2 Jun, 2009 22:47:02

Message: 1 of 3

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.

Regards
Markus

Subject: Matlab engine

From: tristram.scott@ntlworld.com (Tristram Scott)

Date: 3 Jun, 2009 08:56:26

Message: 2 of 3

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

Subject: Matlab engine

From: Markus Buehren

Date: 3 Jun, 2009 11:10:02

Message: 3 of 3

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.

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 Markus Buehren 2 Jun, 2009 18:49:02
rssFeed for this Thread

Contact us at files@mathworks.com