Main Content

Create a Project from a Model

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

Tip

For a simpler option that automates more steps for you, see insteadCreate 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 theSimulationtab, selectNew>Project>新项目从这个模型.

    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 underDependencies. 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. ClickOKto create the project containing your model and any other specified files.

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

Related Examples

More About