How can I launch Matlab 2012?

来源:互联网 发布:js清除input的value值 编辑:程序博客网 时间:2024/06/05 07:13

http://askubuntu.com/questions/185763/how-can-i-launch-matlab-2012


8 down vote accepted

Try navigating to bin folder in your Matlab installation directory:

cd /usr/local/MATLAB/R2012a/bin

Then execute Matlab from there:

./matlab

Source: How do I launch MATLAB on Linux?

If that worked for you, you can create alias:

cd /usr/local/bin/sudo ln -s /usr/local/MATLAB/R2012a/bin/matlab matlab

This trick will allow you to launch matlab from any directory, as you were trying to do. Note that you should usesudo for the last command, since it creates alias globally, for all users.

If you are not in sudoers list (i.e. you cannot use sudo command), you can create alias locally. To do that, open.bashrc file, which is in your home directory:

gedit ~/.bashrc

Add the following line to the end of that file:

alias matlab="/usr/local/MATLAB/R2012a/bin/matlab"

Finally, reopen your terminal, or type source ~/.bashrc and execute this command.

Source: How do I create shortcuts, aliases, or links to MATLAB?


原创粉丝点击