I can't use Document command to generate a Report
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Cris LaPierre
2021-2-15
With the documentation example working, try using your template again. Do you still get the same error?
If so, how did you create your template? What happens if you create your template using
2 个评论
Cris LaPierre
2021-2-15
编辑:Cris LaPierre
2021-2-15
I just worked through the example in the video you shared, and it worked fine for me. Perhaps you just needed to restart MATLAB?
更多回答(1 个)
Rahul Singhal
2021-2-15
The issue in the non-working script is that it has a typo in the package import statement, which is the reason it is not able to recognize the Document class.
Change:
import mireportgen.dom.*;
to
import mlreportgen.dom.*;
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Reporting and Database Access 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!