0
$\begingroup$

I am using MATLAB R18 and MATHEMATICA 12. I downloaded MATlink to the directory generated by the command:

SystemOpen@FileNameJoin[{$UserBaseDirectory, "Applications"}]

Next I wrote:

Needs["MATLink`"]
OpenMATLAB[]

Mathematica starts evaluation but fails to open MATLAB in the background. Any help would be appreciated.

$\endgroup$
1
  • $\begingroup$ Is there an information function that returns the details of the MatLab install? Perhaps you need to point MATLink to your MatLav installation. $\endgroup$
    – Edmund
    Mar 26 at 13:54

1 Answer 1

1
$\begingroup$

I found it out, the path that I should define in the system has to be where the *.dll files are located, not where the matlab.exe is located,

i.e., c\******\bin\win64

not c\******\bin

$\endgroup$
3
  • $\begingroup$ Add comments to your existing post or to answers. Delete this "answer" and add it as a comment to your initial post $\endgroup$
    – Edmund
    Mar 26 at 23:00
  • $\begingroup$ What operating system are you using? $\endgroup$
    – bbgodfrey
    Mar 26 at 23:53
  • $\begingroup$ This resolves the issue. The directory win64 has to be added to the $PATH variable on Windows. $\endgroup$
    – Syed
    Mar 27 at 5:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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