Main Content

removeReference

Remove project reference

Description

removeReference(proj,reference) removes the reference to the project specified by reference. The reference is removed from the specified project, proj.

example

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

openExample("matlab/TimesTableProjectExample")
proj = currentProject;

Create a new blank project.

projectToReference = matlab.project.createProject();

Reload the first project and add a reference to the new blank project.

reload(proj);
addReference(proj,projectToReference,"absolute");

Remove the reference to the blank project.

removeReference(proj,projectToReference);

Input Arguments

collapse all

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Reference to the project you want to remove, specified as a matlab.project.Project object or as a character vector or string scalar. If you specify this argument as a character vector or string scalar, specify an absolute path or a path relative to the project.

Version History

Introduced in R2019a