how to convert generated model advisor check report which is in html file into PDF format using m script? I am using MATLAB 2020a version

4 ビュー (過去 30 日間)
I did model advisor checks and generated reports. Generated reports are in html format by default. I need to convert html file into PDF.

回答 (1 件)

Vishesh
Vishesh 2022 年 11 月 28 日
  • You can use "ModelAdvisor.run()" for generating report.
  • For the Windows operating system, the supported formats are 'pdf', 'html', and 'word'. For UNIX like operating systems, the only supported format is 'html'.
  • For generating report in "pdf" format in Windows, use Name-value argument "ReportFormat" as "pdf" as shown below.
ModelAdvisor.run(model, checkIDs,'ReportFormat', 'docx', 'ReportPath', pwd, 'ReportName', 'myReport');
  3 件のコメント
Vishesh
Vishesh 2022 年 11 月 28 日
oussama
oussama 2023 年 5 月 8 日
編集済み: oussama 2023 年 5 月 8 日
@Vishesh this documentation is for MATLAB R2022a and he asked for MATLAB R2020a.I am also want a solution to generate pdf report at MATLAB R2020b.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRun Model Advisor Checks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by