I am trying to run a Matlab code in the HPC of my university. The code is submitted using
qsub and a
In order to use Matlab R2019b, I have been instructed that: To make use of Matlab R2019b add the following to the top of your script after the scheduler flags
I'm having troubles in doing that. At the moment, my bash file opens Matlab R2015b (instead of Matlab R2019b). (Note: in place of username I have put my actual username). This is my bash:
#$ -S /bin/bash #$ -l h_vmem=4G #$ -l tmem=4G #$ -l h_rt=24:0:0 #$ -cwd #$ -j y #Run 3 tasks where each task has a different $SGE_TASK_ID ranging from 1 to 3 #$ -t 1-3 #$ -N try date hostname #Output the Task ID echo "Task ID is $SGE_TASK_ID" export PATH=/username/local/matlab/bin:$PATH matlab -nodisplay -nodesktop -nojvm -nosplash -r "main_1; ID = $SGE_TASK_ID; main_2; exit"
I have also tried with
export PATH=/username/local/matlabR2019b/bin:$PATH but the issue persists.
Also, if from the terminal I type
cd /home/username/local it tells me that the folder does not exist. How is that possible?
$HOME/local/matlab/bin:$PATH, and not what is proposed.
find / -name matlab -xdev 2>/dev/null. If it returns nothing remove
find / -name matlab -type f -xdev 2>/dev/nulland run it again. Post the output in your question, not in a comment.