error report container Matlab Report generator

2 views (last 30 days)
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?

Answers (1)

Akshay Kumar
Akshay Kumar on 10 Sep 2018
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.

Community Treasure Hunt

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

Start Hunting!

Translated by