Main Content

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.

  1. Open the example model sldemo_auto_climatecontrol.

    openExample('sldemo_auto_climatecontrol')
  2. Call the ModelAdvisor.run function:

    SysResultObjArray = ModelAdvisor.run('sldemo_auto_climatecontrol/Heater Control',...
    'mathworks.maab.jc_0021');

  3. Save the SysResulObjArray for use at a later time:

    save my_model_advisor_run SysResultObjArray

  4. Clear the workspace to simulate viewing the results at a different time:

    clear

  5. Load the results of the Model Advisor run:

    load my_model_advisor_run SysResultObjArray

  6. View the results in the Model Advisor:

    viewReport(SysResultObjArray{1},'MA')

See Also

Related Topics