Closed sbmdkhajamoinuddin closed 3 years ago
My problem resolved! I just took out MATLink.m file out of MATLink folder and pasted separately in the Applications folder and now it's working. May I know what could be the issue?
My problem resolved! I just took out MATLink.m file out of MATLink folder and pasted separately in the Applications folder and now it's working.
No, don't do such intrusive modifications (with any package), as this will break things.
May I know what could be the issue?
Very likely, the directory structure was incorrect. You must have $UserBaseDirectory/Applications/MATLink
, not $UserBaseDirectory/Applications/MATLink/MATLink
.
On Windows, extracting a zip file may or may not create nested directories, depending on what unzipping program you are using. Probably yours created an extra nesting level.
Yeah! It could be a problem with unzipping program. Thank you szhorvat!
After changing $UserBaseDirectory/Applications/MATLink/MATLink to $UserBaseDirectory/Applications/MATLink its working now. The problem is merely due to the unzipping program.
its working now.
Great! I'm closing this issue then.
The problem is merely due to the unzipping program.
It's not really a problem with the unzipper, but unfortunately programs are a bit inconsistent in how they unzip. Some try to be helpful and create an additional folder with the same name as the zip file. Some do this only when the zip file contained more than a single folder. Some never do it. Thus, unfortunately, it was not possible to package MATLink in a way to get predictable unzipping results.
Hai! I couldn't install MATLink in windows 10. Followed the install steps in http://matlink.org/ also tried to follow troubleshooting page but of no use.
Copied MATLink to folder opened by SystemOpen@FileNameJoin[{$UserBaseDirectory, "Applications"}]
The output of Environment["PATH"] is "C:\Program Files\Wolfram \ Research\Mathematica\11.1\SystemFiles\Libraries\Windows-x86-64;C:\ \Program Files\Wolfram \ Research\Mathematica\11.1\SystemFiles\Libraries\Windows;C:\\ Program Files\Wolfram \ Research\Mathematica\11.1\SystemFiles\Kernel\Binaries\Windows-\ x86-64;C:\Program Files\Wolfram \ Research\Mathematica\11.1;C:\Program Files\Wolfram \ Research\Mathematica\11.1\SystemFiles\FrontEnd\Binaries\Windows-\ x86-64;C:\Program Files\Wolfram \ Research\Mathematica\11.1\SystemFiles\Kernel\Binaries\Windows-\ x86-64;C:\Program Files\MATLAB\R2016b\bin"
Ran Matlab as admin and regmatlabserver also worked. (returned empty char array).
Restarted Mathematica several times after adding path
The o/p of Needs["MATLink
"] MATLink
Developer`GetInfo[]Get::noopen: Cannot open MATLink
. Needs::nocont: Context MATLink
was not created when Needs was evaluated. $FailedGet::noopen: Cannot open MATLink
. Needs::nocont: Context MATLink
was not created when Needs was evaluated. $Failed SetOptions::optnf: Force32BitEngine is not a known option for MATLink. SetOptions[MATLink, "Force32BitEngine" -> False]