Documentation Center

  • Trial Software
  • Product Updates

Automatically Load and Set the Default Configuration

When you use the Model Advisor, you can automatically set the default configuration by modifying an sl_customization.m file. For more information on creating the sl_customization.m file, see Register Checks and Process Callbacks.

  1. Place a configuration MAT file on your MATLAB® path. For more information on MAT files, see Organize Checks and Folders Using the Model Advisor Configuration Editor

  2. Modify your sl_customization.m file by adding the function:

    function [checkCellArray taskCellArray] = ModelAdvisorProcessFunction ...
     (stage, system, checkCellArray, taskCellArray) 
        switch stage 
            case 'configure' 
        ModelAdvisor.setConfiguration('qeAPIConfigFilePath.mat'); 
    end 

    In the function, replace qeAPIConfigFilePath.mat with the name of the configuration MAT file in step 1.

  3. The sl_customization.m file is loaded every time you start the Model Advisor, using qeAPIConfigFilePath.mat as the default configuration. For more information, see Update the Environment to Include Your sl_customization File.

    Tip   You can restore the MathWorks® default configuration by selecting File > Restore Default Configuration.

Was this topic helpful?