Reputation: 51
When trying to execute any commands from MATLAB.jl in julia, the matlab command window opens, and Julia immediately exits with no errors, warnings, or messages. Has anyone else encountered this before? I'm working on translating some MATLAB code to julia and using MATLAB.jl to check that the sparse matrices are the same for both pieces of code.
I'm on a Windows computer and have tried following the instructions on the MATLAB.jl github repo. I've also tried adding Matlab to path and executing the code from the Julia REPL, but keep encountering the same problem.
I can get mxarray
executes, however, trying it seems like anything which requires a matlab session causes julia to quit, e.g. mxcall
, md""
, and MSession
.
Upvotes: 3
Views: 276
Reputation: 51
Was able to solve the problem by opening julia through the command prompt as an administrator and running ] build MATLAB
and ] test MATLAB
. If the terminal was not opened as administrator, it would build, however, during the testing it would return exit error: 3765269347
, which seems to be a windows-specific internal process error.
After this has been done, MATLAB.jl seems to work even when it is not opened directly with admin rights.
Upvotes: 2