Main Content

Create a Project from a Model

Create a project to organize your model and any dependent files. Use Create Project from Model to run a dependency analysis on your top model to identify required files.

Tip

For a simpler option that automates more steps for you, see instead Create a New Project from a Folder.

Projects can help you organize your work and collaborate in teams. The project can help you to:

  • Find all your required files

  • Manage and share files, settings, and user-defined tasks

  • Interact with source control.

  1. In a Simulink® model, on the Simulation tab, select New > Project > New Project from this Model.

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

  2. In the Create Project dialog box, edit any settings you want to change:

    • Name — By default, the name of the suggested project root folder. Edit if desired.

    • Folder — A folder that dependency analysis identified to contain all dependencies. If you want, click to select a different folder in the file system hierarchy between the file system root and the model folder.

    All file dependencies in the project root folder are included in the project. All external dependencies are listed under Dependencies. If required files are outside your project root folder, then you cannot add these files to your project. An external dependency might not indicate a problem if the file is on your path and is a utility or other resource that is not part of your project.

  3. Click OK to create the project containing your model and any other specified files.

For an example showing what you can do with projects, see Explore Project Tools with the Airframe Project.

Related Examples

More About