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 and enter a description of the template.

    When you use the template, the Simulink start page displays this title and description.

  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