openProject - Load an existing project - MATLAB (original) (raw)

Main Content

Syntax

Description

[proj](#mw%5Fe579cda5-dd6e-4e16-aea7-9f429a6472a8) = openProject([projectPath](#mw%5F5dfcbe84-6f1c-4ce2-87f4-6712c8241e00)) loads the project in the specified file or folder. If any projects are currently open, MATLABĀ® closes them before loading the specified project.

example

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 .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