Hello everyone
I am trying to call Julia codes from MATLAB, as I need to send my Julia code to a MATLAB user.
It seems for Julia >1.0 the solution is GitHub - byuflowlab/Mex.jl: Embedding Julia in the MATLAB process.
I followed the readme file: first installed MATLAB.jl from Julia and then added this Mex package in Julia by
]add GitHub - byuflowlab/Mex.jl: Embedding Julia in the MATLAB process.
the readme file says this build process will build the mexjulia MEX function from the source.
But when I try jl.eval(‘2+2’) in MATLAB, it shows:
It appears the mexjulia MEX function is missing. Consider building “Mex.jl”.\n
Just to make sure MATLAB.jl is properly installed, I could do
using MATLAB
using Mex
in Julia and I am able to call mat”2+2” from Julia and get 4.0 as an output.
So it seems the mexjulia MEX function is not properly installed?
I have been following the steps and am quite confused about what I missed. I also looked through previous posts on this topic but still couldn’t figure it out.
Does anyone have some ideas about what did I miss?
Thank you very much!!