Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

generateFileName

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

Introduced in R2017b

Was this topic helpful?