MATLAB: Regarding the startup options

nodesktopnojvmnosplash

How do I know if it's ok to run my script with '-nojvm'?
And what's the difference between '-nodesktop' and '-nodispaly -nosplash'?

Best Answer

Does your script use any Java objects or graphics? If so, it will likely fail to run under -nojvm. If you want to guard your code and test whether or not Java is available, use JAVACHK or USEJAVA.
As for the startup options, '-nosplash' causes MATLAB to launch without displaying the splash screen as described in the documentation.
Related Question