Main Content

slreportgen.report.FunctionReference.customizeReporter

Class: slreportgen.report.FunctionReference
Namespace: slreportgen.report

Create custom function reference reporter class

Since R2022a

Syntax

reporter = slreportgen.report.FunctionReference.customizeReporter(targetFilePath)

Description

reporter = slreportgen.report.FunctionReference.customizeReporter(targetFilePath) defines a subclass of slreportgen.report.FunctionReference in a newly created MATLAB® program file (.m) in the folder specified by targetFilePath. The method creates or uses the existing resources/templates subfolder, in the folder specified by targetFilePath, and copies the default template files of the FunctionReference class into the subfolder. Use the created subclass as a starting point for creating your custom version of the FunctionReference reporter.

Input Arguments

expand all

Path and name of the new class definition file, specified as a string scalar or character vector.

ValueDescription
slreportgen.report.FunctionReference.customizeReporter("myFolder/MyClass")Create MyClass.m in the subfolder myFolder of the current folder.
slreportgen.report.FunctionReference.customizeReporter("myFolder/@MyClass")

Create the reporter class in a class folder by preceding the class name with the @ character. Do not specify the .m extension.

See Folders Containing Class Definitions.

slreportgen.report.FunctionReference.customizeReporter("+myOrg/@MyClass")Create the reporter class in a class namespace by preceding the folder name with the + character.

Note

You can specify a relative path or an absolute path.

Data Types: string | char

Output Arguments

expand all

Path and file name of the new reporter class, returned as a string scalar.

Version History

Introduced in R2022a