1
$\begingroup$

I just discovered MATLink and it's awesome. The only problem I have is that using OpenMATLAB[] opens a MATLAB session in the background and not the interactive GUI. So the only way I have to interact with this session is through Mathematica (via MATLink) and not directly, which is what I want to do. Is there any way to link Mathematica to an interactive MATLAB instance?

(I'm on Mac Sierra, Mathematica Version 11.0.1, MATLAB R2016b)

$\endgroup$
4
  • $\begingroup$ Related (duplicate?): (69937) $\endgroup$
    – C. E.
    Commented Mar 10, 2017 at 19:12
  • $\begingroup$ @C.E. Thanks! this is exactly what I need, but unfortunately the AutomationServer is only available on Windows systems. Is there a solution for Mac? $\endgroup$
    – yohbs
    Commented Mar 10, 2017 at 19:16
  • $\begingroup$ I spent a lot of time on this, including contacting the MathWorks support. There is no documented API that we could use to implement this feature on OS X. $\endgroup$
    – Szabolcs
    Commented Mar 10, 2017 at 19:35
  • $\begingroup$ What's annoying is that they do provide this feature in their Python API, which uses an undocumented internal C++ API that would be just too much trouble to reverse engineer ... $\endgroup$
    – Szabolcs
    Commented Mar 10, 2017 at 19:39

1 Answer 1

1
$\begingroup$

No, this is not possible on macOS and Linux due to the limitations of the MATLAB Engine C API.

Reference:

$\endgroup$
1
  • $\begingroup$ Bummer. Thanks. $\endgroup$
    – yohbs
    Commented Mar 10, 2017 at 19:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.