I can't use Document command to generate a Report
古いコメントを表示

6 件のコメント
Cris LaPierre
2021 年 2 月 15 日
What is the result when you run the following in your command window?
which mlreportgen.dom.Document
Junior Joel Aguilar Hancco
2021 年 2 月 15 日
Cris LaPierre
2021 年 2 月 15 日
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'Hello World');
close(d);
rptview(d.OutputPath);
Junior Joel Aguilar Hancco
2021 年 2 月 15 日
Junior Joel Aguilar Hancco
2021 年 2 月 15 日
Cris LaPierre
2021 年 2 月 15 日
Sorry, i realized I was wrong so removed it. This link is helpful.
採用された回答
その他の回答 (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 件のコメント
Cris LaPierre
2021 年 2 月 15 日
I think that confirm I need glasses :)
Junior Joel Aguilar Hancco
2021 年 2 月 15 日
カテゴリ
ヘルプ センター および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



