Documentation

Simulink Project Setup

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

Simulink® 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 Simulink Projects?.

Functions

simulinkproject Open Simulink Project and get project object
slproject.loadProject Load Simulink project
Simulink.createFromTemplate Create model or project from template
Simulink.findTemplates Find model or project templates with specified properties
Simulink.exportToTemplate Create template from model or project
slproject.getCurrentProjects List all top-level Simulink projects
addFile Add file to Simulink Project
addFolderIncludingChildFiles Add folder and child files to Simulink Project
close Close Simulink Project
export Export Simulink Project to zip
findFile Get Simulink Project file by name
isLoaded Determine if Simulink Project is loaded
reload Reload Simulink Project
removeFile Remove file from Simulink Project

Examples and How To

Project Creation

Create a Project from a Model

Create a project to organize your model and any dependent files. Simulink runs dependency analysis on your model to identify required files and a project root location that contains all dependencies.

Create a New Project to Manage Existing Files

If you have many files that you want to organize into a project, use a new project. If you have a model with dependent files, see instead "Create a Project from a Model".

Add Files to the Project

Add files in the project files view or programmatically.

Create a New Project from an Archived Project

Create a new project from an archived project in a zip file.

Create a New Project Using Templates

In Simulink Project, use templates to create and reuse a standard project structure.

Open Recent Projects

Open recent projects from MATLAB® or Simulink.

Change the Project Name, Root, Description, and Startup Folder

In Simulink Project, use the Project root tree node to edit the project name or add a description.

Explore Simulink Project Tools with the Airframe Project

Try an example Simulink project to see how the tools can help you organize your work.

Startup and Shutdown Automation

Specify Project Path

Simulink Project can manage your path automatically when you open and close projects.

Automate Startup Tasks with Shortcuts

In Simulink Project, startup shortcuts help you set up the environment for your project.

Automate Shutdown Tasks with Shortcuts

In Simulink Project, shutdown shortcuts help you clean up the environment for the current project when you close it.

Frequent Task Shortcuts

Create Shortcuts to Frequent Tasks

In Simulink Project, create shortcuts for common project tasks and to make it easy to find and access important files and operations.

Use Shortcuts to Find and Run Frequent Tasks

In Simulink Project, use shortcuts to make it easy for any project user to find and access important files and operations.

Project Template Creation

Create a Template from the Current Project

In Simulink Project, when you create a template, it contains the structure and all the contents of the current project, enabling you to reuse scripts and other files for your standard project setup.

Create a Template from a Project Under Version Control

Make a Simulink Project template and avoid accidentally committing changes meant only for the template.

Edit a Template

Modify an existing template and create a new template or overwrite a template.

Explore the Example Templates

Use the example Simulink project templates as example structures for a new project.

Concepts

What Are Simulink Projects?

Use Simulink 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 Simulink Project, use shortcuts to make it easy for any project user to find and access important files and operations.

Using Templates to Create Standard Project Settings

In Simulink Project, use templates to create and reuse a standard project structure.

Was this topic helpful?