linux install matlab

How to install Matlab 2017b on Ubuntu 16.04

  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.

 

Make desktop launcher for Matlab on Ubuntu

This brief tutorial will demonstrate how to make a .desktop file for Matlab on Ubuntu or another standard compliant desktop environment.
Open up a terminal, and run the following. In order for this to work, you will have needed to set up symbolic links during installation (see end if you didn’t).

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

and paste the following into the document.

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

Save, and you should have a new desktop shortcut in your launcher. Comment with any issues or concerns following an update to Matlab and I will see if I can help.
Note you can change the “Name” field above for different versions.
You can also specify the direct path to the matlab executable as e.g. “Exec=/usr/local/MATLAB/R2018a/bin/matlab -desktop“.

If you did not set up symbolic links during installation you may be able to get away with running one additional command to make the above work:

sudo ln -s /usr/local/MATLAB/R2018a/bin/matlab /usr/bin/matlab

substitute R2018a for whatever Matlab version you are using.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值