Using Matlab and access to sample Matlab scripts

From InelasticDataReduction
Revision as of 15:21, 8 December 2015 by Alex Buts (talk | contribs)
Jump to navigation Jump to search

Matlab packages for Inelastic Scattering data analysis used in ISIS include Horace and Mslice.


Isiscompute servers provide users with access to recent version of Matlab using substantial number of floating licenses. Usually number of 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 such 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 necessary for dealing with some errors in the analysis packages or rare out of memory situations.