Documentation

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 New Project dialog box, edit any settings you want to change:

    • 项目名称— By default, the name of the suggested project root folder. Edit if desired.

    • Project 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.

    • Files to include— Files to include in the project. Files with selected check boxes are identified by dependency analysis. Select check boxes to specify all the files you want to include.

      Any external dependencies are listed. If required files are outside your project root, 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.

    • If you do not want to make a shortcut to the top-level file, or add all the folders to the project path, underMore Options, clear the check boxes. Alternatively, you can edit these project settings later.

  3. ClickCreateto 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