Using Launcher utility on Matlab

Hello everyone, I’m very new to this place and let me say coding itself so I apologize for silly mistakes before everything. I’m trying to run a very simple Matlab file using the Launcher utility on a cluster. I want to use multi-cores on my node later for other purposes but for now my only challenge is to open a matlab file using launcher utility. I have used the following slurm file for that and it works on simple text commands but it cannot open m files. Can anyone help me to find out where am I making a mistake?

#!/bin/bash
#Simple SLURM script for submitting multiple serial
#jobs (e.g. parametric studies) using a script wrapper
#to launch the jobs.
#
#
#SBATCH -J
#SBATCH -N 1
#SBATCH -n 16
#SBATCH -p development
#SBATCH -o Parametric.%j.out
#SBATCH -e Parametric.%j.err
#SBATCH -t 00:15:00
#SBATCH -A <account_name>




module load launcher
export LAUNCHER_WORKDIR=my_work_directory
export LAUNCHER_JOB_FILE=my_matlab_file.m

$LAUNCHER_DIR/paramrun

I’m not familiar with Launcher, but if the script works with a text file and not a matlab file, it may be that the ability to open a text file exists in your environment, but not the ability to open/run a Matlab file. If that’s the case, loading the appropriate Matlab module should allow you (or Launcher) to open the .m file.

Matlab modules differ among clusters, but you should be able to run the module avail Slurm command to find the Matlab module you need on your cluster.