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.



Generate temporary report file name


fname = generateFileName(report)
fname = generateFileName(report,ext)


fname = generateFileName(report) returns a path string usable as the path of a file in the temporary folder of the report. You can use generateFileName to generate names for files that are stored temporarily until the report is closed.

fname = generateFileName(report,ext) uses the specified file extension.

Input Arguments

expand all

Report, specified as a report object. To create the report input, use

File extension, specified as an image file extension.

Example: generateFileName(rpt,'jpg')

Output Arguments

expand all

File name for temporary file, specified as a string.

Introduced in R2017b