I have to use MATLINK to connect to MATLAB to run some programs. Variables can be get using MGet and assigned to a variable using MSet. However, I want to use ParallelMap (and other parallel functions) to set and get the variables from MATLINK. One way suggested here installs the mathlink into all parallel kernels. I tried to do the same with MATLINK and installed mengine into all parallel kernels using ParallelEvaluate[Install["mengine"]]. It created link objects. Now when I try to run ParallelMap, it is not working. The output is Not connected to the MATLAB engine.
• MATLink is not MathLink. Don't try to mess with the internals of MATLink by using Install directly. You simply need to load the package on all parallel kernels (ParallelNeeds) and start a MATLAB session from each (ParallelEvaluate[OpenMATLAB[]]). These will be distinct MATLAB sessions that do not share any variables. – Szabolcs May 5 '18 at 9:14