Класс: mlreportgen.report.MATLABVariable
Пакет: mlreportgen.report
Создайте шаблон переменной MATLAB
template = mlreportgen.report.MATLABVariable.createTemplate(templatePath,type)
создает копию MATLAB® переменный шаблон генератора отчетов задан template = mlreportgen.report.MATLABVariable.createTemplate(templatePath,type)type в templatePath местоположение . Можно использовать скопированный шаблон в качестве начальной точки, чтобы спроектировать пользовательский шаблон переменной MATLAB для отчета.
Чтобы использовать новый шаблон для переменной MATLAB, присвойте ее путь к TemplateSrc свойство mlreportgen.report.MATLABVariable.
import mlreportgen.report.* rpt = Report('My Report','html'); mlvar = MATLABVariable(); template = MATLABVariable.createTemplate... ('mytemplates\myMLVar','html'); mlvar.TemplateSrc = template;
mlreportgen.report.Reporter | mlreportgen.report.Report | mlreportgen.report.MATLABVariable