1
wget https://esd.mathworks.cn/R2024a/Release/5/licensed_software/installers/matlab_R2024a_Linux.zip?__gda__=1723725717_b86bd44ac8c2b9d1daaa46fc6e6a15fb&dl_id=DdzWAkuJ&ext=.zip
2
xhost +SI:localuser:root
sudo ./install
xhost -SI:localuser:root
3 start
MATLAB must be launched from the command line on Linux.
If you completed installation as root user, you may have had the option to install symbolic links to MATLAB in a folder on your system path. If you selected to install these links you can launch MATLAB from the command line, regardless of current working directory, by typing the command:
user@host$> matlab
If this does not work, or if you did not install the symbolic links during installation, you must launch MATLAB by specifying the full path to the MATLAB start script:
cd $MATLABROOT/bin
where $MATLABROOT is the full path to your MATLAB installation directory, ex:
/usr/local/matlab/R2024a
then launch MATLAB using the following command:
user@host$> ./matlab
You may also create a symbolic link to MATLAB post-installation as the root user with the following command, assuming you’re using R2024a:
sudo ln -s /usr/local/MATLAB/R2024a/bin/matlab /usr/local/bin/matlab
See the Documentation for additional information about starting MATLAB on Linux: