メインコンテンツ

slreportgen.report.FunctionReference.customizeReporter

カスタム関数リファレンス レポーター クラスを作成

R2022a 以降

構文

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

説明

reporter = slreportgen.report.FunctionReference.customizeReporter(targetFilePath) は、targetFilePath で指定されたフォルダーに新しく作成される MATLAB® プログラム ファイル (.m) で slreportgen.report.FunctionReference のサブクラスを定義します。このメソッドは、targetFilePath で指定されたフォルダーに resources/templates サブフォルダーを作成するか既存のものを使用して、そのサブフォルダーに FunctionReference クラスの既定のテンプレート ファイルをコピーします。作成されたサブクラスを開始点として使用して FunctionReference レポーターのカスタム バージョンを作成します。

入力引数

すべて展開する

新しいクラス定義ファイルのパスと名前。文字ベクトルまたは string スカラーとして指定します。

説明
slreportgen.report.FunctionReference.customizeReporter("myFolder/MyClass")現在のフォルダーのサブフォルダー myFolderMyClass.m を作成します。
slreportgen.report.FunctionReference.customizeReporter("myFolder/@MyClass")

クラス名の前に @ 文字を付けて、レポーター クラスをクラス フォルダー内に作成します.m 拡張子は指定しないでください。

クラス定義を含むフォルダーを参照してください。

slreportgen.report.FunctionReference.customizeReporter("+myOrg/@MyClass")フォルダー名の前に + 文字を付けて、レポーター クラスをクラス名前空間内に作成します。

メモ

相対パスまたは絶対パスを指定できます。

データ型: string | char

出力引数

すべて展開する

新しいレポーター クラスのパスとファイル名。string スカラーとして返されます。

バージョン履歴

R2022a で導入