フィルターのクリア

How to save summaryReport generated by Model Advisor programmatically ?

1 回表示 (過去 30 日間)
Shiva Haresh
Shiva Haresh 2023 年 2 月 9 日
コメント済み: Shiva Haresh 2023 年 2 月 13 日
  • I would like to save(programmatically) the summaryReport generated by Model Advisor after Model Checks
  • Would be nice if two such summary Report can be clubbed together. Since after the new check is run with different configuration the old link for the summary report says 'Link out of date'

採用された回答

Smit
Smit 2023 年 2 月 10 日
Hi,
I understand you want to know if there is a programmatic way to save summary report generated by Model Advisor, and if there is a way to access previously generated summary reports.
You can run the Model Advisor with the “ModelAdvisor.run” function. Model Advisor saves the report in a folder called “slprj”.
An example of “ModelAdvisor.run” is as follows: -
results = ModelAdvisor.run(["vdp"], ["mathworks.design.OptimizationSettings"]);
% View saved report
ModelAdvisor.summaryReport(results)
To avoid overwriting previously generated reports, one way could be to save new reports in another location using the “ReportPath” property of the “ModelAdvisor.run” function.
An example of this is as follows
results = ModelAdvisor.run(["vdp"], ...
["mathworks.design.OptimizationSettings"], "ReportPath", "destination/path");
For more information on the “ModelAdvisor.run” function you can visit the documentation page.
You can also find information about saving and viewing Model Advisor reports here.
  1 件のコメント
Shiva Haresh
Shiva Haresh 2023 年 2 月 13 日
Thank you @Smit! But I was just wondering whether there is a way to save it under same folder with a unique filename. But I did explore, it seems not possible. Please correct me if I am wrong. Thank you again

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCheck Model Compliance についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by