Класс: 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