Interfacing with Matlab

 
Hello

Has anybody managed to control Matlab from MQL expert advisor? I tried it this way:
- I wrote C++ DLL to start Matlab, using Matlab Engine interface. DLL works fine when called from other C++ programs.
- I call my DLL from MQL expert advisor - Matlab starts ok, but exits immediately after the init() function finishes.

I do not have any problems invoking different DLLs from MQL, the problem is just with starting Matlab.

Maybe somebody suggests a different way of interfacing with Matlab?

Thanks in advance,
Piotr
 
Hello,


You may do a test by replacing Matlab startup with Notepad.exe, for example and see if it behaves similarly. You may have to use the "fork" as it is called in Linux; that is start a process and let it continue, but not block the code execution. ..


Just a thought...
Reason: