How can I generate a report programmatically using the Report Explorer templates?

1 view (last 30 days)
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
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')

More Answers (0)

Categories

Find more on Reporting and Database Access in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!