I have a script "myScript.m" that uses "parfeval" to run some functions in parallel. These functions generate files to an output directory on a network drive. When I run this script on my local machine, it works and I can see the output files on the network drive. It also works when I run an interactive MATLAB session (with a GUI) on the HPC cluster. However, it does not work when I submit a job script to our HPC job scheduler that executes:
matlab -nodisplay -r myScript
Even more puzzling is that it works if I make my code run serially. What is going on?
Best Answer