Create a Template from a Model

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.

  1. In the model, on the Simulation tab, select Save > Template.

  2. 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.

  3. In the Template file box, select a file name and location for the template SLTX file.

    Tip

    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.

  4. (Optional) Specify a thumbnail image for the template by clicking Change and selecting an image file.

  5. Click Export.

See Also

Related Topics