removeReference - Remove project reference - MATLAB (original) (raw)
Main Content
Syntax
Description
removeReference([proj](#mw%5Fc77efaf3-167f-491b-8db4-473708fc6945),[folder](#bvnahqu-1-folder))
removes the reference to the project specified by folder
. The reference is removed from the specified project, proj
.
Examples
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
Project, specified as a matlab.project.Project
object. Use currentProject to create a project object from the currently loaded project.
Path of the folder containing the referenced project to remove, specified as a character vector or string scalar. Specify the path relative to the project root folder. The folder must be within the root folder.
Version History
Introduced in R2019a