Under Mac/Linux, it seems that python code waits until the matlab script terminates however, under windows, the code simply proceeds before the matlab script terminates which crashes the application.
The code starts matlab subprocesses by an os.system(command). A major part of the python code's task is to generate and run certain matlab scripts. I am using a particular python code base which, in a Linux system, solves the problem I am working on (I am using Windows). First of all, I'm sorry if my question seems silly, but I am very unfamiliar with Python.