Add Files to the Project

After creating a Simulink® Project, the Files node in the Project tree shows the Project Files View. Click the Project Files View button and select All Files View to display all files in your project folder (or projectroot). Files under your chosen project root are not included in your project until you add them. You might not want to include all files in your project. For example, you might want to exclude some files under projectroot from your project, such as SVN or CVS source control folders.

To add existing files to your project, use any of these methods:

  • In the All Files View, select files or folders, right-click, and select Add to Project or Add to Project (including child files).

  • Drag and drop files from a file browser or the Current Folder browser onto the Project Files view to add files to your project. If you drag a file from outside the project root, this copies the file into your project. If you drag a file within project root, you move the file.

  • Add and remove project files at the command line using addFile.

To create new files or folders in the project, right-click a white space in the Project Files view and select New Folder or New File. The new files are added to the project.

To learn how to set up your project with all required files, see Choose Files and Run Dependency Analysis.

To configure your project to automatically run startup and shutdown tasks, see Automate Startup Tasks with Shortcuts.

You can access your recent projects direct from MATLAB®. See Open Recent Projects.

If you want to add source control, see Add a Project to Source Control.

Related Examples

More About

Was this topic helpful?