MATLAB: Command window output of still running task

capturecommandwindowoutputmonitoringParallel Computing Toolbox

Hello,
does anyone whether there is a way to get the command window output of a task while it is still running?
If not, is there another built-in way of monitoring running tasks (besides the state?)?
Thanks,
Pieter

Best Answer

Start the session from another process, using OS-level pipe() to communicate with it. Unfortunately MATLAB does not flush its buffer at any particular time.
If you need graphics, you might have to read the output using screen capture techniques.
There is no mechanism within MATLAB to do what you would like (unfortunately.)