error report container Matlab Report generator

1 次查看(过去 30 天)
Hi
I'm running into an error trying to generate a report.
I tried running the example code posted in the instructional video posted by Matlab, which is this:
import mlreportgen.report.*;
import mlreportgen.dom.*;
doctype = 'pdf';
doc = Report('Population report', doctype);
error message: Cannot find an exact (case-sensitive) match for 'Report'
closest match: ... Matlab\R2016b\toolbox\rptgen\rptgen\report.m
Does not work. Any idea why?

回答(1 个)

Akshay Kumar
Akshay Kumar 2018-9-10
Based on the error that you have provided, I assume that you are using MATLAB R2016b.
The line mlreportgen.report.*package was introduced in release R2017b which is why you are facing the error.
You can refer the below MATLAB answer for more details about the issue you are facing.
As suggested in the answer, I would you advise you to upgrade to R2017b to use this package.

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by