mlreportgen.report.MATLABCode Class
Namespace: mlreportgen.report
Superclasses: mlreportgen.report.Reporter
Description
Use an object of the mlreportgen.report.MATLABCode
class to include
syntax-highlighted MATLAB® code in a report. If you need a DOM object instead
of a Report object, use the method getSyntaxColoredCode
with the mlreportgen.report.MATLABCode
object. (since R2024b)
The mlreportgen.report.MATLABCode
class is a handle
class.
Creation
Description
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 arguments. You can specify multiple name-value arguments in any order.