MATLAB: Running DOS command from Matlab

dosfortranMATLAB

I am running an execution file of a Fortran code in Matlab using DOS command.(I do not have access to the source code though).
The Fortran code is written in a way that print too many parameters on the screen window. Thus, when you run it on Matlab, all these parameters are printed on command window therefore it extremely reduces the SPEED.
Since I do not have any access to the source code, I cannot avoid the fortran code of doing that, but is there any way, not allowing the matlab to print these useless parameters on the command window.
Thanks

Best Answer

You can redirect the output to a file if you do care about reviewing it later:
system('mycommand > myoutputfile.txt')
or you can just send the output to null
system('mycommand > NUL')
or output and errors if you really don't care at all.
system('mycommand 1 > NUL 2 > NUL')