Matlab Returns Exit Code Immediately
I am creating various matlab .m-files with python and then run them using subprocess. When the files are finished I would like to delete them: command = ['C:\\MatlabR2012b\\bin
Solution 1:
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
.
Post a Comment for "Matlab Returns Exit Code Immediately"