To add existing files to a project, on the Project tab, in the File section, click Add
Files. Then, select from the list of files in the project folder that are not yet added to the
project. To add existing files from the Files view, click All. Then, right-click one or more
files and folders, and select Add to Project or Add to Project (including child files).
To add existing files from a file browser or the Current Folder browser, cut and paste or
drag and drop the files into the project Files view. If you drag a file from outside the
project root folder, this moves the file and adds it to your project. Drag files within the
project root to move them.
To add and remove project files programmatically, use the addFile function.
You might not want to include all files in your project. For example, you might want to
exclude some files in the project root folder, such as SVN or CVS source control folders.
To determine which files need to be included in your project, see “Analyze Project
Dependencies” on page 31-38.
Other Ways to Create Projects
There are several alternative ways to create a project. You can:
- Create a project from an archived project.
- Create a project using a Simulink template.
- Create a project using files retrieved from an existing source control repository. For
more information on this last alternative, see “Use Source Control with Projects” on
page 31-48.
Create a Project from an Archived Project
Some projects are shared as archived projects. An archived project is useful for sharing
with users who do not have access to a connected source control tool. To view and edit
the contents of an archived project, create a new project from the archived project.
To create a new project from an archived project, in the Current Folder browser, double-
click the archived project file which has an .mlproj extension. The Extract Project dialog
box opens. Specify the location for the new project and click Select Folder. For example,
C:\myNewProject.
The new project opens. The current folder (for example, C:\myNewProject) contains the
imported project folders. If the archived project contains referenced projects, MATLAB
Create Projects