Main Content

generateFileName

Class: mlreportgen.report.Report
Namespace: mlreportgen.report

Generate temporary report file name

Syntax

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

Description

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 mlreportgen.report.Report.

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