slreportgen.report.MATLABFunction 类
R2025b命名空间: slreportgen.report
超类: slreportgen.report.Reporter
MATLAB Function 模块或 Stateflow MATLAB 函数报告器
描述
使用 slreportgen.report.MATLABFunction 类的对象来报告 Simulink® MATLAB Function 模块或 Stateflow® MATLAB® 函数。
默认情况下,MATLABFunction 报告器会将此信息添加到报告中:
Simulink MATLAB Function 模块或 Stateflow MATLAB 函数属性
函数输入和输出参量的摘要
函数用来根据输入计算输出的 MATLAB 代码
使用报告器属性来包含其他信息,例如详细参量属性、函数符号属性和支持函数。
注意
要在报告中使用 MATLABFunction 报告器,您必须使用 slreportgen.report.Report 类创建报告。
slreportgen.report.MATLABFunction 类是 handle 类。
创建对象
描述
根据默认模板创建一个空的 reporter = slreportgen.report.MATLABFunctionMATLABFunction 报告器。使用 Object 属性指定要报告的 Simulink MATLAB Function 模块或 Stateflow MATLAB 函数。
将 reporter = slreportgen.report.MATLABFunction(mlfcnObj)Object 属性设置为 mlfcnObj 指定的 MATLAB Function 模块或 Stateflow MATLAB 函数。
使用名称-值参量设置 reporter = MATLABFunction(Name=Value)MATLABFunction 报告器属性。您可以按任意顺序指定多个名称-值参量。
属性
方法
示例
版本历史记录
在 R2018a 中推出
另请参阅
slreportgen.finder.BlockFinder | slreportgen.finder.BlockResult | slreportgen.finder.DiagramElementFinder | slreportgen.finder.DiagramElementResult | slreportgen.finder.StateflowDiagramElementFinder | mlreportgen.report.BaseTable | mlreportgen.dom.Paragraph | MATLAB Function | slreportgen.utils.isMATLABFunction



