Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

mlreportgen.report.Report.customizeReport

クラス: mlreportgen.report.Report
名前空間: mlreportgen.report

レポート クラスから派生させたクラスの作成

構文

reporter = mlreportgen.report.Report.customizeReporter(classpath)

説明

reporter = mlreportgen.report.Report.customizeReporter(classpath) は、mlreportgen.report.Report のサブクラスを定義するレポーター クラス定義ファイルを、classpath で指定された場所に作成します。また、このメソッドは、既定のレポーター テンプレートを、クラス定義ファイルを含むフォルダーの resources/templates サブフォルダーにコピーします。クラス定義ファイルを開始点として使用して、カスタム レポーター クラスを設計できます。

入力引数

すべて展開する

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

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

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

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

mlreportgen.report.Report.customizeReport("+myOrg/@MyClass")フォルダー名の前に + 文字を付けて、クラス パッケージ内にレポーター クラスを作成します。

メモ

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

データ型: string | char

出力引数

すべて展開する

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

レポート サブクラスの作成

mlreportgen.report.Reportpackage.MyClassB という名前の新しいサブクラスを作成します。

mlreportgen.report.Report.customizeReport("+package/@MyClassB")

バージョン履歴

R2017b で導入