Main Content



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.

Version History

Introduced in R2017b