Using Matlab and access to sample Matlab scripts
Jump to navigation
Jump to search
Matlab packages for Inelastic Scattering data analysis used in ISIS include Horace and Mslice. The packages have home pages containing extensive description, but most recent and useful sample scripts are provided to users on the file system using HoraceExampleScripts, placed on users desktop
/home/[USER'S_FEDERAL_ID]/Desktop/HoraceExampleScripts
by script defined in skel configuration.
Isiscompute servers provide users with access to recent version of Matlab and substantial number of floating licenses. Usually number of free licences is sufficient for users doing experiments and data analysis. If Matlab does not start, number of available licences can be checked using simple bash script:
#!/bin/bash # check network licence for Matlab /usr/local/MATLAB/R2014a/etc/glnxa64/lmutil lmstat -c /usr/local/MATLAB/R2014a/licenses/network.lic -a
Horace and Mslice are configured to be accessible from Matlab in two ways:
- Using startup.m file, which is copied from skel configuration to each user home folder when user account is created. See the description of startup.m file at Mslice and Horace configuration pages for the detailed description of this file contents.
- By adding special horace_on and similar mslice_on scripts to Matlab default search path. The scripts are doing roughly the same as changes to startup.m file but allow user to initialize Horace and Mslice from any folder user starts Matlab in, and not only from his or her home folder, and allow user to reinitialize these packages. This may be convenient for dealing with some errors in the analysis packages when trying to resolve out of memory situations.