I have to execute a standalone application, aTool.exe, from a .m file, Gen.m.
I put a command in Gen.m to execute the aTool.exe as
system('aTool.exe');
It worked fine. However, because aTool.exe has a lot of printings to the command window, it takes forever to finish running this command. I wrote the Gen.m. The "aTool.exe" is an open source application so I do no have access to the source codes. aTool.exe is supposed to generate 3 text files, Result1.txt, Result2.txt and Result3.txt at the end. When it runs, it prints out some processing messages to the screen. Those three text files are what I need but I don't need those processing messages during the running time.
Does any one know how I can stop "aTool.exe" printing to the command window when I run the Gen.m file ? I have tried
matlab -nodisplay -nojvm -nosplash -nodesktop -r Gen > matlab.out
It didn't work. The command window still popped out and started printing.