Before you answer, I'm not looking for the functionality of ; to suppress command line printing.
I have a set of scripts which are not mine and I do not have the ability to change. However, in my scripts I make a call to these other scripts through evalin('base', 'scriptName'). Unfortunately, these other scripts do a lot of unnecessary and ugly printing to the command window that I don't want to see. Without being able to edit these other scripts, I would like a way to suppress output to the command line for the time that these other scripts are executing.
One potential answer was to use evalc, but when I try evalc(evalin('base', 'scriptName')) MATLAB throws an error complaining that it cannot execute a script as a function. I'm hoping there's something like the ability to disable command window printing or else redirecting all output to some null file much like /dev/null in unix.
;?disp?fprintf? Why can't you edit the scripts? - excazafprintf. I cannot edit the scripts because they're not mine and I don't have access to them. I can only run them. - zephyrfprintfto do nothing, but this is not a good solution. You are better off fixing the files yourself. You'd also be much better off refactoring these scripts into functions so you pass them arguments explicitly rather than relying onevalinto function correctly. - excaza