Is there a -batch option prior to 2019a, i.e., in 2017a
4 views (last 30 days)
Tom Holz on 2 Mar 2020
Edited: Tom Holz on 3 Mar 2020
[ EDIT: the command-line below is wrong. See Edric and Steven's comments for the correct way to emulate batch functionality on older releases. ]
Yes on Linux:
matlab -nodesktop -nodisplay -r myscript.m
On Windows, that syntax can still be used to run batch scripts, but it still opens a minimal terminal window.