安装Linux matlab

论坛 期权论坛 脚本     
匿名技术用户   2021-1-3 19:26   67   0

Download software

Go to the download page and download the installation file as a zip.

You may have to log in using your matlab credentials before downloading the installation file.

Install

  1. unzip the installation file to anywhere you like.

  2. open terminal, type the command below:

    sudo sh install

  3. change any settings as you see fit and install the software to its preferred location /usr/local/MATLAB

  4. active MATLAB with your credentials

Create desktop entry (optional)

Type the following commands in the terminal.

sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png
sudo touch /usr/share/applications/matlab.desktop
sudo gedit /usr/share/applications/matlab.desktop

Paste the following into the document and save it. (You may need to update the path to the matlab executable file if it is not installed in the default location, e.g. Exec=/usr/local/MATLAB/R2017b/bin/matlab -desktop )

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Icon=/usr/share/icons/matlab.png
Name=MATLAB R2017b
Comment=Start MATLAB - The Language of Technical Computing
Exec=matlab -desktop -useStartupFolderPref 
Categories=Development;

Press super and then you should be able to find the MATLAB icon in the Unity Search.

Change initial working directory (optional)

By default, Matlab startups with the folder in which you run the matlab command. To use the folder specified by the Initial working folder preference, use the -useStartupFolderPref startup option and change the initial working directory as below.

On the Home tab, in the Environment section, click Preferences Select MATLAB> General. Choose an option for the Initial working folder preference.

Enjoy using Matlab!

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP