How to create report programmatically ?

1 vue (au cours des 30 derniers jours)
Laurent Martinez
Laurent Martinez le 29 Sep 2017
I am using MATLAB version r2016b, and want to create a report.
Here are the versions used :
----------------------------------------------------------------------------------------------------
MATLAB Version: 9.1.0.441655 (R2016b)
Operating System: Microsoft Windows 10 Entreprise Version 10.0 (Build 14393)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Report Generator Version 5.1 (R2016b)
Simulink Report Generator Version 5.1 (R2016b)
Following Matlab documentation I do the following :
import mlreportgen.report.*;
import slreportgen.report.*;
import slreportgen.utils.*;
rpt = slreportgen.report.Report('UnitTestReport','pdf');
Why following error occured, and how can I resolve it :
Undefined variable "slreportgen" or class "slreportgen.report.Report".

Réponse acceptée

Nick Choi
Nick Choi le 2 Oct 2017
Modifié(e) : Nick Choi le 2 Oct 2017
'slreportgen.report.Report' was not introduced until MATLAB R2017b according to the following documentation page:
To the view the capabilities specifically for MATLAB R2016b, you can use the following link: https://www.mathworks.com/help/releases/R2016b/index.html
In the future, you can access the documentation for a specific release through the following link: https://www.mathworks.com/help/doc-archives.html
  1 commentaire
Laurent Martinez
Laurent Martinez le 3 Oct 2017
Thanks for clarification

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Reporting and Database Access dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by