% path where is the matlab program we want to run
addpath path_to_my_matlab_script
% execute the matlab program
my_matlab_script
% exit from Matlab - if we would not exit the job would not exit when the program is done, thus sitting around idle and wasting time till it runs out of walltime
exit
