- it more concisely sets up the -nosplash and -nodisplay options (even on Windows)
- removes the startup banner
- ensures the MATLAB process exits (with an exit code) even if your statement throws an error
-r vs -batch when calling matlab in unix
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
August Brandberg
el 20 de Mzo. de 2020
Comentada: August Brandberg
el 25 de Mzo. de 2020
I am aware that matlab -r scriptName(arg1,...) is no longer recommended for non-interactive jobs on unix systems, and that I should use -batch instead (see https://se.mathworks.com/help/matlab/ref/matlablinux.html ).
However, I have been unable to find why that is better. Could someone point me in the right direction?
0 comentarios
Respuesta aceptada
Edric Ellis
el 23 de Mzo. de 2020
(I'm not an expert here, just a user of the -batch option) The main advantages for me of the -batch option compared to -r for non-interactive cases are:
All told, it's just more convenient.
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!