#!/bin/bash -l # Name the job #$ -N parallel_matlab # Join input and output streams #$ -j y # Request enough time #$ -l h_rt=12:00:00 # Request parallel environment #$ -pe omp 4 # Save output files in a subdirectory #$ -o logs # Load module(s) module load matlab/matlab/2023a # Execute the program matlab -nodesktop -nodisplay -batch "par(); exit"