mlreportgen.report.MATLABCode class
Package: mlreportgen.report
Description
Use an object of the mlreportgen.report.MATLABCode
class to include
syntax-highlighted MATLAB® code in a report.
The mlreportgen.report.MATLABCode
class is a handle
class.
Creation
Description
reporter = mlreportgen.report.MATLABCode()
creates an empty MATLABCode
reporter object based on the default template.
You must specify the MATLAB code file by setting the FileName
property, or specify the code content by setting the Content
property. Use other properties to specify reporter options.
reporter = mlreportgen.report.MATLABCode(filename)
creates a MATLABCode
reporter with the FileName
property set to filename
.
reporter = mlreportgen.report.MATLABCode(Name=Value)
sets properties using name-value pairs. You can specify multiple name-value pair arguments
in any order.
Properties
Methods
Examples
Version History
Introduced in R2021a