Main Content

removeCategory

Remove project category of labels

Description

removeCategory(proj,categoryNames) removes categories of labels from the specified project.

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 category of labels.

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

Remove the new category of labels.

removeCategory(proj,"Engineers");

Input Arguments

collapse all

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

Names of the categories to remove, specified as a string array, a cell array of character vectors, or an array of Category objects.

Version History

Introduced in R2019a

expand all