ucsf-wynton / wynton-website-hpc

The Official Wynton HPC User Website
https://wynton.ucsf.edu/hpc/
2 stars 14 forks source link

typo in matlab batch call #118

Closed pierre-nedelec closed 1 year ago

pierre-nedelec commented 1 year ago

The command doesn't work as it is written: the script should be called by name and not file name, i.e.:

matlab -singleCompThread -batch my_script 

notice the my_script and not my_script.m
source

HenrikBengtsson commented 1 year ago

Thanks a bunch for spotting this. I, mistakenly, actually though -batch to a script as input, but I now realize it takes a MATLAB expression, e.g. "1+2". I've tried to clarify this a bit, without going too much into the details (https://wynton.ucsf.edu/hpc/howto/matlab.html#using-matlab-in-job-scripts).