Use the
exists = Simulink.ModelAdvisor.reportExists(system)
method to determine whether a Model Advisor report exists in the
slprj/modeladvisor subfolder of the MATLAB working folder.
exists — Boolean value indicating whether Model Advisor report exists Boolean
Boolean value that indicates whether Model Advisor report exists.
A value of 1 indicates that the report exists. A value of
0 indicates that the report does not exist.