rsmenon / MATLink

Communicate with MATLAB from Mathematica
matlink.org
68 stars 14 forks source link

Investigate using new C++ MATLAB Engine API #103

Open szhorvat opened 5 years ago

szhorvat commented 5 years ago

We use the old C MATLAB Engine API. Our experience was that it is buggy, slow and has many limitations.

We should investigate using the new C++ API. It seems to have the ability to connect to a shared session. This might enable connecting to an already running MATLAB instance with MATLink even on Mac/Linux. Currently, MATLink can only do this (unofficially) on Windows. This ability would be enormously useful.

We also need to find out which MATLAB version introduced this API. I suspect it is something fairly recent.

szhorvat commented 5 years ago

(It may have been introduced in R2017b, see individual function doc pages: https://uk.mathworks.com/help/matlab/apiref/matlab.engine.connectmatlab.html)