Archive and View Model Advisor Run Results
This example guides you through archiving the results of running checks so that you can review them at a later time. To simulate archiving and reviewing, the steps in the tutorial detail how to save the results, clear out the MATLAB® workspace (simulates shutting down MATLAB), and then load and review the results.
Open the example model
sldemo_auto_climatecontrol
.openExample('sldemo_auto_climatecontrol')
Call the
ModelAdvisor.run
function:SysResultObjArray = ModelAdvisor.run('sldemo_auto_climatecontrol/Heater Control',... 'mathworks.maab.jc_0021');
Save the
SysResulObjArray
for use at a later time:save my_model_advisor_run SysResultObjArray
Clear the workspace to simulate viewing the results at a different time:
clear
Load the results of the Model Advisor run:
load my_model_advisor_run SysResultObjArray
View the results in the Model Advisor:
viewReport(SysResultObjArray{1},'MA')