Thank you for the suggestion. I tried compiling my script using mcc -m to create a standalone executable, but unfortunately it didn't work as expected. The executable fails to run properly, even though the compilation completes without errors. Do you happen to know if there are any additional steps or common issues I should check for when using the compiled version with Condor? I'd appreciate any pointers.
What we've taken to doing locally is running MatLab jobs in Matlab containers --
https://github.com/CHTC/recipes/tree/main/software/Matlab -- which may not work in/for your pool. Our previous advice is still available -- https://github.com/CHTC/chtc-website-source/blob/master/_uw-research-computing/archived/matlab-jobs.shtml-- although a little bit hard to read. It may suffice, to get you going, to try 'mcc -m -R -singleCompThread -R -nodisplay -R -nojvm foo.m' to generate the executable.
-- ToddM