Main Content

slreportgen.report.StateTransitionTable.customizeReporter

Class: slreportgen.report.StateTransitionTable
Package: slreportgen.report

Create custom state transition table reporter class

Syntax

mFilePath = slreportgen.report.StateTransitionTable.customizeReporter(targetFilePath)

Description

mFilePath = slreportgen.report.StateTransitionTable.customizeReporter(targetFilePath) defines a subclass of slreportgen.report.StateTransitionTable 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 StateTransitionTable class into the subfolder. Use the created subclass as a starting point for creating your custom version of the StateTransitionTable reporter.

Input Arguments

expand all

Target path for the new MATLAB program file, specified as a character vector or string scalar. You can specify targetFilePath with or without the .m file extension.

Data Types: char | string

Output Arguments

expand all

Path of the created MATLAB program file, returned as a string scalar.

Data Types: string

Examples

expand all

This example shows how to create a subclass of the StateTransitionTable class.

mFilePath = ...
    slreportgen.report.StateTransitionTable.customizeReporter(...
                                        "d:\myClasses\myReporter")

The output of the command shows the path of the created MATLAB program file.

mFilePath = 

    "d:\myClasses\myReporter.m"

This is the folder structure:

d:\myClasses\myReporter.m
d:\myClasses\resources\templates\docx\default.dotx
d:\myClasses\resources\templates\html\default.htmt
d:\myClasses\resources\templates\html\default.htmtx
d:\myClasses\resources\templates\pdf\default.pdftx

Version History

Introduced in R2022a