新版的matlab2019上线,有两个版本,1个是单机版本,1个是服务器版本(需要连接学校的服务器matlab.pku.edu.cn)。
1、通过网络自动判断的使用方法,默认使用服务器版本
[root@s12b05n03 ~]# which matlab
/usr/local/bin/matlab
[root@s12b05n03 ~]# ll /usr/local/bin/matlab
lrwxrwxrwx 1 root root 34 Aug 12 13:31 /usr/local/bin/matlab -> /apps/usr/MATLAB/R2017b/bin/matlab
###这个是系统默认,目前是2017b
[root@s12b05n03 ~]# source /appsnew/source/matlab2019b.sh
[root@s12b05n03 ~]# which matlab
/appsnew/usr/Matlab/MATLAB2019b-n-l12/bin/matlab
####这个是2019b-服务器版本,因为网络是通的
2、使用单机版本
[root@s12b05n03 ~]# source /appsnew/source/matlab2019b-personal.sh
[root@s12b05n03 ~]# which matlab
/appsnew/usr/Matlab/MATLAB2019b-standalone-l12/bin/matlab
3、使用服务器版本
[root@s12b05n03 ~]# source /appsnew/source/matlab2019b-server.sh
[root@s12b05n03 ~]# which matlab
/appsnew/usr/Matlab/MATLAB2019b-n-l12/bin/matlab
4、启动测试
[root@s12b05n03 ~]# which matlab
/appsnew/usr/Matlab/MATLAB2019b-n-l12/bin/matlab
[root@s12b05n03 ~]# matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
< M A T L A B (R) >
Copyright 1984-2019 The MathWorks, Inc.
R2019b (9.7.0.1190202) 64-bit (glnxa64)
August 21, 2019
To get started, type doc.
For product information, visit www.mathworks.com.
附件:source /appsnew/source/matlab2019b.sh