You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The segfault issue with MATLAB versions 2022/2023 is gone on Linux platforms (#215)
* Update README.md warning about segfault issue
* Update README.md
Add info about updating the MATLAB release in case of segfault
* add specific platform warnings regarding issues with R2022/2023
* clarify instructions on how to use different Matlab versions
Copy file name to clipboardExpand all lines: README.md
+22-4
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
## MATLAB
2
2
3
+
| ❗ Windows and MacOS platforms : MATLAB versions R2022 and R2023 do not work with `MATLAB.jl` ❗ <br/> You can use older versions as explained [further down](https://github.com/JuliaInterop/MATLAB.jl#changing_matlab_version). |
4
+
|:----:|
3
5
4
-
|:exclamation:** MATLAB versions 2022 and 2023 trigger a segfault and do not work with `MATLAB.jl`. Maintainers are attempting to diagnose the cause and fix the issue. **|
5
-
|-----------------------------------------|
6
+
|❗ Linux platforms : If you experience problems when starting the MATLAB engine with versions R2022 or R2023, try to [update](https://se.mathworks.com/help/matlab/matlab_env/check-for-software-updates.html) your MATLAB release.|
7
+
|:----:|
6
8
7
9
8
10
@@ -29,8 +31,6 @@ This package is composed of two aspects:
29
31
30
32
**Important**: The procedure to setup this package consists of the following steps.
31
33
32
-
By default, `MATLAB.jl` uses the MATLAB installation with the greatest version number. To specify that a specific MATLAB installation should be used, set the environment variable `MATLAB_ROOT`.
33
-
34
34
### Windows
35
35
36
36
1. For Matlab R2020a onwards, you should be able to go directly to step 2. If you encounter issues, run `matlab -batch "comserver('register')"` in the command prompt. For earlier versions of Matlab, start a command prompt as an administrator and enter `matlab /regserver`.
@@ -60,6 +60,24 @@ By default, `MATLAB.jl` uses the MATLAB installation with the greatest version n
60
60
2. From Julia run: `Pkg.add("MATLAB")`
61
61
62
62
63
+
## Changing MATLAB version
64
+
65
+
By default, `MATLAB.jl` is built using the MATLAB installation with the greatest version number. To specify that a specific MATLAB installation should be used, set the environment variable `MATLAB_ROOT`:
66
+
```julia
67
+
julia>ENV["MATLAB_ROOT"] ="/usr/local/MATLAB/R2021b"# example on a Linux machine
68
+
```
69
+
```julia
70
+
julia>ENV["MATLAB_ROOT"] =raw"C:\Program Files\MATLAB\R2021b"# example on a Windows machine
71
+
```
72
+
Replace the path string with the location of the MATLAB folder on your machine. You need to set the path to the `R20XX` folder, not the `matlab` binary.
73
+
74
+
If you had the package `MATLAB.jl` already installed and built before changing the environment variable, you will need to rebuild it to apply the change:
0 commit comments