Main Content

Project Setup

Organize work into projects, automate startup and shutdown, find frequent tasks, reuse standard template settings

Projects help you to organize large modeling projects by finding required files, managing and sharing files and settings, and interacting with source control. See What Are Projects? and watch Using Projects to Collaborate, Track, and Merge Changes and Perform Code Reviews (4 min, 50 sec).


expand all

currentProjectGet current project (Since R2019a)
openProjectLoad an existing project (Since R2019a)
closeClose project (Since R2019a)
exportExport project to archive (Since R2019a)
matlab.project.extractProjectExtract project from archive (Since R2022b)
matlab.project.createProjectCreate blank project (Since R2019a)
matlab.project.convertDefinitionFilesChange definition file type of project (Since R2020b)
matlab.project.deleteProjectStop folder management and delete project definition files (Since R2019b)
matlab.project.loadProjectLoad project (Since R2019a)
matlab.project.rootProjectGet root project (Since R2019a)
Simulink.createFromTemplateCreate model or project from template
Simulink.findTemplatesFind model or project templates with specified properties
Simulink.exportToTemplateCreate template from model or project

Legacy API

simulinkproject(Not recommended) Open project and get project object
slproject.create(Not recommended) Create blank project
slproject.getCurrentProjects(Not recommended) List all top-level projects
slproject.loadProject(Not recommended) Load project
addFileAdd file or folder to project (Since R2019a)
addFolderIncludingChildFilesAdd folder and child files to project (Since R2019a)
addPathAdd folder to project path (Since R2019a)
addReferenceAdd referenced project to project (Since R2019a)
addShortcutAdd shortcut to project (Since R2019a)
addShutdownFileAdd shutdown file to project (Since R2019a)
addStartupFileAdd startup file to project (Since R2019a)
findFileFind project file by name (Since R2019a)
isLoadedDetermine if project is loaded (Since R2019a)
reloadReload project (Since R2019a)
removeFileRemove file or folder from project (Since R2019a)
removePathRemove folder from project path (Since R2019a)
removeReferenceRemove project reference (Since R2019a)
removeShortcutRemove shortcut from project (Since R2019a)
removeShutdownFileRemove shutdown file from project shutdown list (Since R2019a)
removeStartupFileRemove startup file from project startup list (Since R2019a)

Legacy API

simulinkproject(Not recommended) Open project and get project object


Project Creation

Startup and Shutdown Automation

  • Specify Project Path
    The project can manage your path automatically when you open and close projects.
  • Automate Startup Tasks
    In a project, startup files help you set up the environment for your project.
  • Automate Shutdown Tasks
    In a project, shutdown files help you clean up the environment for the current project when you close it.

Frequent Task Shortcuts

Project Template Creation

About Projects

  • What Are Projects?
    Use projects to help you organize your work. Find all your required files; manage and share files, settings, and user-defined tasks; and interact with source control.
  • What Can You Do with Project Shortcuts?
    In a project, use shortcuts to make it easy for any project user to find and access important files and operations.
  • Sharing Projects
    Collaborate by sharing projects by email, archive file, template, MATLAB toolbox, or on GitHub®.