This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Display or save Command Window text of batch job


diary(job, 'filename')



Job from which to view Command Window output text.


File to append with Command Window output text from batch job


diary(job) displays the Command Window output from the batch job in the MATLAB® Command Window. The Command Window output will be captured only if the batch command included the 'CaptureDiary' argument with a value of true.

diary(job, 'filename') causes the Command Window output from the batch job to be appended to the specified file.

The captured Command Window output includes only the output generated by execution of the task function. Output is not captured from code that runs asynchronously from the task.

See Also

| |

Introduced in R2008a