Класс: 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.MATLABVariable | mlreportgen.report.Report | mlreportgen.report.Reporter