This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Automate Shutdown Tasks

In a project, shutdown files help you clean up the environment for the current project when you close it. Shutdown files should undo the settings applied in startup files.

Configure an existing file to run when you close your project.

  1. Right-click the file and select Run at Shutdown.

    The Status column displays an icon and tooltip indicating the file will run at shutdown.


Shutdown files are included when you commit modified files to source control. Any shutdown files you set run for all other project users.

To stop a file running at shutdown, change it back by right-clicking it and selecting Remove from Shutdown.

Related Examples

More About