On Windows, there is both bin\matlab.exe
and bin\win32\matlab.exe
(or bin\win64\matlab.exe
). The former is just a wrapper around the latter and pretty much exits immediately.
You can either call bin\win32\matlab.exe
directly or use the -wait
option when calling bin\matlab.exe
.