If you need to submit one or more single core jobs, and are not encountering problems with the lack of specific toolbox licenses, then you might wish to submit your jobs directly with PBS rather than going through the MATLAB parallel computing toolbox.
1. Build a MATLAB .m code file
Include all of the MATLAB commands that you need to execute in a MATLAB .m file, such as sample.m and place it somewhere in your home directory or subdirectory. The creation and contents of a .m file are beyond the scope of this document. Consult the MATLAB documentation for information on .m files.
2. Create a PBS batch script
You will need to execute MATLAB from within a PBS batch script, such as sample.pbs as follows. In this example, this file is saved in the same directory as sample.m.
In this example the sample.pbs script calls matlab with the -r option followed by the MATLAB script name that was created in step #1. Leave off the trailing .m from the script name when calling MATLAB this way.
Click here for more information about PBS job scripts.
3. Submit the Job
After you have created sample.m and sample.pbs, go to the directory where sample.pbs resides, load the MATLAB module (if you have not already done so) and submit the job to the job scheduler:
You should now be able to see your job in the queue by going to your Linux terminal window and using the showq command.