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
installexecutable insidesudo ./installThis should install Matlab inside
/usr/local/MATLAB/RXXXX
→ If the install crashes, see possible issues belowNavigate to
/usr/local/MATLAB/RXXXX/binand run Matlab./matlabShortcut
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 wsl --shutdown wsl --update(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/R2023bThis may also occur when trying to install addons.