Main Content

getReportFileName

Get report file name for ModelAdvisor.run system result object

Since R2021a

Description

example

getReportFileName(resultObj) gets the report file name of ModelAdvisor.run system result object. For more information on the system result object, see ModelAdvisor.run.

Examples

expand all

Run a Model Advisor check and get the name of the Model Advisor report file.

Open the model vdp by entering:

openExample("simulink_general/VanDerPolOscillatorExample")

Run the Model Advisor check mathworks.jmaab.jc_0627.

res = ModelAdvisor.run("vdp","mathworks.jmaab.jc_0627")

Get the name of the report file from the Model Advisor results.

getReportFileName(res{1})
ans =

    'C:\Users\username\MATLAB\Examples\R2023b\simulink_general\VanDerPolOscillatorExample\slprj\modeladvisor\vdp\report.html'

Version History

Introduced in R2021a