Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab engine - open interactively?

Subject: Matlab engine - open interactively?

From: Michael

Date: 15 Feb, 2010 20:15:08

Message: 1 of 2

Matlab 2009b

Hi,

I'd like to use Matlab's engine capabilties from C to send data to Matlab for interactive visualization and manipulation.

1) Windows:
I know in Windows I can run Matlab with the /Automation switch and I get the engine to attach to the existing matlab process, a matlab console window that works how I'd like. Except, it seems I have to run the C exe from within Matlab. I'd rather not have to launch my C exe from Matlab. If I call engwindemo.exe from outside of matlab, I get an error:
"The procedure entry point ?init_application_init@detail@matrix@@YA_NH@Z could not be located in the dynamic link library libmx.dll"

Is this to be expected?

2) OSX:
The docs say in Unix the engine can't attach to an existing matlab process. But is there a way to launch the engine so that it starts an interative matlab session, either with command window or full GUI? That would be very useful. Thanks.

Cheers,
Michael

Subject: Matlab engine - open interactively?

From: Luis Gustavo

Date: 9 Sep, 2012 16:17:08

Message: 2 of 2

Hi,

I have exactly the same questions... any news on this?

Thanks,

Gustavo

"Michael" <michael@circular-logic.com> wrote in message <hlca0c$kkj$1@fred.mathworks.com>...
> Matlab 2009b
>
> Hi,
>
> I'd like to use Matlab's engine capabilties from C to send data to Matlab for interactive visualization and manipulation.
>
> 1) Windows:
> I know in Windows I can run Matlab with the /Automation switch and I get the engine to attach to the existing matlab process, a matlab console window that works how I'd like. Except, it seems I have to run the C exe from within Matlab. I'd rather not have to launch my C exe from Matlab. If I call engwindemo.exe from outside of matlab, I get an error:
> "The procedure entry point ?init_application_init@detail@matrix@@YA_NH@Z could not be located in the dynamic link library libmx.dll"
>
> Is this to be expected?
>
> 2) OSX:
> The docs say in Unix the engine can't attach to an existing matlab process. But is there a way to launch the engine so that it starts an interative matlab session, either with command window or full GUI? That would be very useful. Thanks.
>
> Cheers,
> Michael

Tags for this Thread

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.

Contact us