slreportgen.report.FunctionReference Class
Namespace: slreportgen.report
Superclasses: slreportgen.report.Reporter
Description
Use objects of the slreportgen.report.FunctionReference
class to report on
MATLAB® function references that are specifically used for calculating parameters in
Simulink® blocks. You can use a FunctionReference
object to add these
elements to your report:
A table with details about how the function is referenced by model blocks
A section with information about the function type
A section with information about the MATLAB program file (
.m
) that defines the function
The slreportgen.report.FunctionReference
class is a handle
class.
Creation
You do not create FunctionReference
objects explicitly. To create a
FunctionReference
object, use the getReporter
method with an object of the class
slreportgen.finder.FunctionReferenceResult
.
Properties
Object
— MATLAB function to be reported
slreportgen.finder.FunctionReferenceResult
object
MATLAB function to be reported, specified as an
slreportgen.finder.FunctionReferenceResult
object.
Attributes:
GetAccess | public |
SetAccess | private |
Data Types: slreportgen.finder.FunctionReferenceResult
ParagraphFormatter
— Formatter for labels, function file path, and function type text
mlreportgen.dom.Paragraph
object
Formatter for labels, function file path, and function type text, specified as an
mlreportgen.dom.Paragraph
object. This formatter determines the
rendering of all labels, function type text, and function file path, if included in the
report. To customize the rendering of these elements, customize the existing
Paragraph
object or assign and customize a new Paragraph
object.
Note
If the FunctionFileDisplayPolicy
is
"code"
, this property affects only the label of the function code
section. Use the MATLABCodeReporter
property to customize the
appearance of the function code.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: mlreportgen.dom.Paragraph
ShowFunctionType
— Whether to include function type in report
true
or 1
(default) | false
or 0
Whether to include the function type in the report, specified as a logical
1
(true
) or 0
(false
).
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
References Table
Properties related to the references table, which contains information about blocks that reference the function.
ShowReferencesTable
— Whether to include a references table in the report
true
or 1
(default) | false
or 0
Whether to include a references table in the report, specified as a logical
1
(true
) or 0
(false
).
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
Title
— Title of references table
empty string (default) | character array | string scalar | mlreportgen.dom
object
Title of references table, if included in the report, specified as one of the these values:
Value | Description |
---|---|
empty 0x0 string | The default title, in the format <function name>
References |
character vector or string scalar | Explicit title of table |
mlreportgen.dom.Text object | The value of the Content property of the
Text object |
mlreportgen.dom.InternalLink object | Concatenation of the contents of the objects in the
Children property of the InternalLink
object |
mlreportgen.dom.InternalLink object | Concatenation of the contents of the objects in the
Children property of the ExternalLink
object |
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
| string
| mlreportgen.dom.Text
| mlreportgen.dom.InternalLink
| mlreportgen.dom.ExternalLink
TableReporter
— Formatter for references table
mlreportgen.report.BaseTable
object
Formatter of the references table, if included in the report, specified as an
mlreportgen.report.BaseTable
object. The default value of this
property is a BaseTable
object with the
TableStyleName
property set to the
FunctionReferenceTable
style, which is defined in the default
template for a FunctionReference
reporter. To customize the references
table, customize the existing BaseTable
object or assign and customize
a new BaseTable
object.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: mlreportgen.report.BaseTable
Program File
Properties related to the section with information about the MATLAB program file (.m
) that defines the referenced
function.
ShowFunctionFile
— Whether to include information about MATLAB program file
true
or 1
(default) | false
or 0
Whether to include information about the MATLAB program file, specified as a logical 1
(true
) or 0
(false
). The
value of the FunctionFileDisplayPolicy
determines which
information about the file to include, the file content or the file path. In effect
only for user-defined functions.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: logical
FunctionFileDisplayPolicy
— Whether to include content or path of the MATLAB program file
"code"
(default) | "text"
Determine whether to include the content or the path of the MATLAB program file, specified as one of these values:
Value | Description |
---|---|
"code" | Include the content of the MATLAB program file |
"text" | Include the path of the MATLAB program file |
In effect only for user-defined functions.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
| string
MATLABCodeReporter
— Formatter of MATLAB program file code
mlreportgen.report.MATLABCode
object
Formatter of MATLAB program file code, if included in the report, specified as an
mlreportgen.report.MATLABCode
object. To customize the format of the
code in the report, customize the existing MATLABCode
object or assign
and customize a new MATLABCode
object.
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: mlreportgen.report.MATLABCode
Methods
Public Methods
slreportgen.report.FunctionReference.getClassFolder |
|
slreportgen.report.FunctionReference.getDefaultTemplatePath |
|
copy | Create copy of a Simulink reporter object and make deep copies of certain property values |
getImpl | Get implementation of reporter |
slreportgen.report.FunctionReference.createTemplate | Copy template file for slreportgen.report.FunctionReference
class |
slreportgen.report.FunctionReference.customizeReporter | Create custom function reference reporter class |
Version History
Introduced in R2022a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)