I have a a problem with running a program in matlab by either the use of a batch file or just the dos() function. I can now open a program en run it with the input by using:
start program.exe input.mdu
But when the computation is finished is does not close on its own. I tried taskkill, taskkill in combination with /wait, close, quit, end, done etc. I have no experience with this at all and can't find any information on this problem. When I tried different commands I either could not get it to close at all or it closed before the computation was finished.
I can get it to work in cmd by the use of taskkill. It then waits until the program is finished, but when I put it in a batch file or in the dos function in Matlab problems start occuring.