User`s guide

11 Functions – Alphabetical List
11-106
close(dWord);
rptview('mydoc','docx');
Input Arguments
reportPath — Report file path including file extension
string
Path to a specific report file, including the file extension, specified as a string.
The report file name extension determines the viewer in which the report displays.
File Extension Viewer
.htmx MATLAB Web browser
.zip MATLAB Web browser
.docx The report displays in Microsoft Word
unless you add the 'pdf' argument after
reportPath.
reportName — Report name
string
The full path of a report, without the file extension, specified as a string. You can specify
a string with the full path. Alternatively, you can use the value of the OutputPath
property of the mlreportgen.dom.Document object that you create for the report.
format — Report output format
string
Use one of these values:
'html'
'docx'
'pdf'
See Also
mlreportgen.dom.Document