Create a Simulink® template from a model to reuse or share the settings and contents of the model without copying the model each time. Create templates only from models that do not have external file dependencies (for example, model references, data dictionary, scripts, S-functions, or other file dependencies). If you want to include other dependent files, use a project template instead. See Using Templates to Create Standard Project Settings.
In the model, on the Simulation tab, select Save > Template.
In the Export modelname
to Model Template dialog box,
edit the template title, select or create a group, and enter a description of the
template.
The Simulink start page displays the title and description you specified and stores the
template under the group you selected, for example, My
Templates
.
In the Template file box, select a file name and location for the template SLTX file.
Save the template on the MATLAB® path to make it visible in the Simulink start page. If you save in a location that is not on the path, the new template is visible in the start page only in the current MATLAB session. Saving the template does not add the destination folder to the path.
(Optional) Specify a thumbnail image for the template by clicking Change and selecting an image file.
Click Export.