Documentation

removeReference

Add folder to Simulink project path

Syntax

removeReference(project,folder)

Description

example

removeReference(project,folder) removes the reference to the Simulink® 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 Simulink 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

Introduced in R2017a

Was this topic helpful?