安装Linux matlab

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 MATLABGeneral. Choose an option for the Initial working folder preference.

Enjoy using Matlab!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值