JuliaInterop / JuliaInterop/MATLAB.jl
MATLAB code does not run / fails silently
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 286
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
Environment:
Windows 10
Julia 1.6.2
MATLAB 2022a academic
I have been unable to run any code in julia that uses matlab successfully. Running the following code will open the matlab command window if it is not already but does nothing else. Furthermore, the print at the end does not show in the terminal or in matlab.
using MATLAB
mat"1+1"
println("done")
I tried running matlab -batch "comserver('register')" since I am on Windows but this results in a long error (I can include if needed) that always starts with com.mathworks.util.ShutdownRuntimeException: Java is shutting down. Really not sure what is going wrong or what I can do to fix it. Any help would be appreciated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the example using MATLAB.jl on Windows 10 with Julia 1.6.2 and MATLAB 2022a. Start with the mat"1+1" call and the matlab -batch "comserver('register')" command, including the reported Java shutdown error. Done means the MATLAB expression runs and println("done") appears in the terminal or MATLAB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, matlab
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100