Skip to content

Commit e6fd585

Browse files
committed
Update message to README to help windows users
1 parent 6c8eb39 commit e6fd585

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This package is composed of two aspects:
2828

2929
### Windows
3030

31-
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`.
31+
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`. Alternatively, you can do the same using the MATLAB GUI. To do this, open MATLAB with administrative privileges and run the following command in the MATLAB command window: `!matlab -regserver`. Close MATLAB and restart Julia.
3232

3333
2. From Julia run: `Pkg.add("MATLAB")`
3434

@@ -74,6 +74,16 @@ If you had the package `MATLAB.jl` already installed and built before changing t
7474
julia> using Pkg; Pkg.build("MATLAB")
7575
```
7676

77+
### Notes for Windows Users
78+
79+
If you are using Windows, MATLAB needs to register its COM interface to properly work with MATLAB.jl. This should happen automatically during installation, but if you encounter issues, you can manually re-register MATLAB (with the version you want to use). To do this
80+
81+
1. Open a MATLAB window with administrative privileges
82+
2. Run the following command in the MATLAB command window: `!matlab -regserver`
83+
3. Close MATLAB and restart Julia
84+
85+
> [!NOTE] The version of MATLAB that is registered must be same that `MATLAB.jl` uses.
86+
7787

7888

7989
## Usage

0 commit comments

Comments
 (0)