MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
imports files into two subfolders, mains and refs. The mains project folder (for
example, C:\myNewProject\mains) contains the project folders. The refs folder (for
example C:\myNewProject\refs) contains the referenced project folders.

Create a Project Using Simulink

If you have Simulink, you can use a Simulink template to create and reuse a standard
project structure.

To create a project from a Simulink template created in R2014b or later:

1 On the Home or Project tab, click New > Project > From Simulink Template.
The Simulink Start Page opens.

(^2) The start page shows all project templates (.sltx) on the MATLAB path. Select a
template in the list to read the template description.
If your templates do not appear, locate them by clicking Open. In the Open dialog
box, make
.sltx files visible by setting the file type to All MATLAB files, and
browse to your template.
(^3) Select a template and click Create Project. The Create Project dialog box opens.
Templates created in R2017b or later warn you if required products are missing.
Click the links to open Add-On Explorer and install required products.
(^4) Specify the root project folder, edit the project name, and click Create Project.
To use project templates created in R2014a or earlier (.zip files), upgrade them
to .sltx files using Simulink.exportToTemplate.
See Also
More About



  • “Manage Project Files” on page 31-12

  • “Analyze Project Dependencies” on page 31-38

  • “Share Projects” on page 31-28

  • “Use Source Control with Projects” on page 31-48

  • “Create and Edit Projects Programmatically” on page 31-62


31 Projects

Free download pdf