MATLAB: Running .exe file from MTLAB using system()

executableMATLABsystem

Hi everyone,
I use system to run my executable file:
system('myfile.exe')
The problem that I'm facing is that it doesn't go to next line unless I close the GUI (which the exe file opens). The exe file doesn't need an input so all I want is to run the exe file programmatically and move on to the next line without waiting for an action from the user. Can anybody help me please? I'd be grateful.

Best Answer

As per the tip section system's help: to execute the operating system command in the background, include the trailing character, &, in the command argument. Therefore:
system('myfile.exe &');