Main Content

openProject

Load an existing project

Description

example

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

Examples

collapse all

Open an existing project from a folder called"C:/projects/project1/".

proj = openProject("C:/projects/project1/")

Input Arguments

collapse all

Full path to the project.prjfile 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 amatlab.project.Projectobject. Use thematlab.project.Projectobject to programmatically manipulate the currently open project.

Version History

Introduced in R2019a