Main Content

matlab.project.loadProject

Description

proj = matlab.project.loadProject(projectPath) loads the project specified by the file or folder projectPath. If any projects are currently open, MATLAB® closes them before loading the specified project.

example

Examples

collapse all

Load a project from a folder called "C:/projects/project1/".

proj = matlab.project.loadProject("C:/projects/project1/")

Input Arguments

collapse all

Full path to project .prj file or project root folder, specified as a character vector or string scalar.

Example: "C:/projects/project1/myProject.prj"

Example: "C:/projects/project1/"

Output Arguments

collapse all

Project, returned as a matlab.project.Project object. Use the matlab.project.Project object to programmatically manipulate the currently open project.

Version History

Introduced in R2019a