How can I generate a report programmatically using the Report Explorer templates?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 4 Jun 2020
Edited: MathWorks Support Team
on 24 Nov 2020
I would like to generate a report for my Simulink model using one of the Report Explorer template. How can I generate a report programmatically using the report explorer templates
Accepted Answer
MathWorks Support Team
on 24 Nov 2020
Edited: MathWorks Support Team
on 24 Nov 2020
If you are looking to generate a report using the "Simulink_default.rpt" format, you can use the "report" command:
>> report('simulink-default.rpt')
By default, the "report" command generates a report for the current system.
Therefore if you would like to generate a report for a specific model, you would use one of the following methods:
>> set_param(0, 'CurrentSystem', 'vdp');
>> report('simulink-default.rpt')
>> load_system('sf_car')
>> report('simulink-default.rpt')
0 Comments
More Answers (0)
See Also
Categories
Find more on Reporting and Database Access in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!