removeCategory

(Not recommended) Remove project category of labels

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

Description

example

removeCategory(proj,categoryName) removes a category of labels, categoryName, from the project specified by proj.

Examples

collapse all

Open the airframe project and create a project object.

sldemo_slproject_airframe;
proj = simulinkproject;

Create a new category of labels.

createCategory(proj,'Engineers','char');

Remove the new category of labels.

removeCategory(proj,'Engineers');

A message appears warning you that you cannot undo the operation. Click Continue. You can configure warnings in the Preferences in the Project Tool.

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.

Name of the category to remove, which exists in the project, specified as a character vector.

Compatibility Considerations

expand all

Not recommended starting in R2019a

Introduced in R2013a