User`s guide

Organize Customization File Checks and Folders
26-13
Function Description Required or Optional
One or more groups Defines custom groups (see
“Define Custom Tasks” on page
26-14).
Required to add custom tasks
to new folders in the Model
Advisor, except when adding
a new subfolder to the By
Product folder. Write one group
definition for each new folder.
One process callback function Specifies actions that Simulink
performs at startup and post-
execution time (see “Define
Startup and Post-Execution
Actions Using Process Callback
Functions”).
Optional.
If the By Product folder is not displayed in the Model Advisor window, select Show By
Product Folder from the Settings > Preferences dialog box.
Register Tasks and Folders
“Create sl_customization Function” on page 26-13
“Register Tasks and Folders” on page 26-14
Create sl_customization Function
To add tasks and folders to the Model Advisor, create the sl_customization.m
file on your MATLAB path. Then create the sl_customization() function in the
sl_customization.m file on your MATLAB path.
Tip
You can have more than one sl_customization.m file on your MATLAB path.
Do not place an sl_customization.m file that customizes the Model Advisor in
your root MATLAB folder or its subfolders, except for the matlabroot/work folder.
Otherwise, the Model Advisor ignores the customizations that the file specifies.
The sl_customization function accepts one argument, a customization manager
object, as in this example: