Matlab image processing example

The code used in this example is modified slightly from an example of processing spectra data that is included as an example in the Matlab Bioinformatics toolbox; see Batch Processing of Spectra Using Sequential and Parallel Computing for additional details on the code.

Example files on ARC-TS clusters can be found in /sw/examples/matlab/ovarian, where there will be a .m file and a .sbat file for each type of cluster profile, for example, spectral_local.m and spectral_local.sbat which illustrate using the local profile.

%%%% You should start one worker per task
if isempty(getenv('SLURM_NTASKS'))
    N = 4;
else
    N = str2num(getenv('SLURM_NTASKS'));
end