Installation
Download the Matlab installer (zip file) for Linux
Move the file to your WSL home (or any other) directory
Unzip the file, and run the
install
executable insidesudo ./install
This should install Matlab inside
/usr/local/MATLAB/RXXXX
→ If the install crashes, see possible issues belowNavigate to
/usr/local/MATLAB/RXXXX/bin
and run Matlab./matlab
Shortcut
add alias for matlab to
.bashrc
:alias matlab='/usr/local/MATLAB/RXXXX/bin/matlab'
Possible issues
WSL not able to open GUIs
Shutdown then update WSL (outside WSL, in powershell)
# powershell --shutdown wsl --update wsl
(optional) test by installing
xeyes
# WSL bash sudo apt install xeyes xeyes
Matlab doesn’t have permissions for
/usr/local/...
# bash sudo chown -R $LOGNAME: /usr/local/MATLAB/R2023b
This may also occur when trying to install addons.