Matlab

Install your own Matlab

You have to follow the below documentation :

Installation-Matlab-IPGP.pdf : Be carefull to install it in your own /localstorage.

Preinstall version in /usr/local

Several versions of Matlab are installed inside the shared directory /usr/local of your Linux machine.

$ ls /usr/local/ | grep mat
lrwxrwxrwx  1 root    root      34 avril 10  2014 matlab -> /usr/local/matlabR2013a/bin/matlab
drwxr-xr-x 13 root    root    4096 sept. 23  2011 matlab2009a
drwxr-xr-x 14 root    root    4096 juin  15  2012 matlabR2012a
drwxr-xr-x 15 root    root    4096 juil. 16  2013 matlabR2012b
drwxr-xr-x 14 root    root    4096 avril 10  2014 matlabR2013a

The matlab default version of the Linux machine is by default the last one !

You can change the defaut version by adding this to your .bashrc (or equivalent) file :

$ head -2 .bashrc
export MATLAB=/usr/local/matlabR2012a/bin
export PATH=$MATLAB:$PATH

You check this with which command :

With the default version you shoud have this :

$ which matlab
/usr/local/bin/matlab

Or if you change Matlab for 2012a version :

$ which matlab
/usr/local/matlabR2012a/bin/matlab

View licences informations

$ lmutil lmstat -c /usr/local/matlab*/license.lic -i
[...]
Feature                         Version     #licenses    Expires      Vendor
_______                         _________   _________    __________   ______
MATLAB                          28           31          01-jan-0000  MLM
MATLAB                          29           10          01-jan-0000  MLM
Curve_Fitting_Toolbox           28           2           01-jan-0000  MLM
Curve_Fitting_Toolbox           29           2           01-jan-0000  MLM
Distrib_Computing_Toolbox       28           2           01-jan-0000  MLM
Distrib_Computing_Toolbox       29           2           01-jan-0000  MLM
Statistics_Toolbox              28           3           01-jan-0000  MLM
Statistics_Toolbox              29           2           01-jan-0000  MLM
Symbolic_Toolbox                28           2           01-jan-0000  MLM
Symbolic_Toolbox                29           2           01-jan-0000  MLM
Compiler                        28           1           01-jan-0000  MLM
MAP_Toolbox                     28           2           01-jan-0000  MLM
Optimization_Toolbox            28           11          01-jan-0000  MLM
Signal_Toolbox                  28           11          01-jan-0000  MLM
Wavelet_Toolbox                 28           2           01-jan-0000  MLM
envi                            4.800        10          1-jan-0000   idl_lmgrd
envi_cartosat                   4.800        10          1-jan-0000   idl_lmgrd
idl_rt                          8.000        100         1-jan-0000   idl_lmgrd
idl                             8.100        10          1-jan-0000   idl_lmgrd
idl_bridge_assist               8.100        1           1-jan-0000   idl_lmgrd
idl_video_write                 8.100        1           1-jan-0000   idl_lmgrd
idl_wavelet                     8.100        1           1-jan-0000   idl_lmgrd

Here Version number have this correspondance :

Version     |  Release name  |  Number  |  Year  
MATLAB 8.1  |  R2013a        |  29      |  March 7, 2013  
MATLAB 8    |  R2012b        |  28      |  September 11, 2012  
MATLAB 7.14 |  R2012a        |  27      |  March 1, 2012  
MATLAB 7.8  |  R2009a        |  21      |  March 6, 2009