This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

removeReference

(Not recommended) Add folder to project path

simulinkproject is not recommended. Use currentProject or openProject instead. For more information, see Compatibility Considerations.

Syntax

removeReference(project,folder)

Description

example

removeReference(project,folder) removes the reference to the project project from the current project.

Examples

collapse all

Create a project and get a project object.

sldemo_slproject_airframe;
project = simulinkproject;

Create a new blank project.

projectToReference = slproject.create();

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

 project.reload();
addReference(project, projectToReference, 'absolute');

Remove the reference to the blank project.

removeReference(project, projectToReference);

Input Arguments

collapse all

Project, specified as a project object. Use simulinkproject to create a project object to manipulate a project at the command line.

Path of the folder to the reference to be removed, relative to the project root folder, specified as a character vector. The folder must be within the root folder.

Example: models/myfolder

Compatibility Considerations

expand all

Not recommended starting in R2019a

Introduced in R2017a