Main Content

removeCategory

Remove project category of labels

Description

example

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

Examples

collapse all

Open the Times Table App project. UsecurrentProjectto create a project object from the currently loaded project.

matlab.project.example.timesTable proj = currentProject;

Create a new category of labels.

createCategory(proj,"Engineers",“字符”);

Remove the new category of labels.

removeCategory(proj,"Engineers");

A message appears warning you that you cannot undo the operation. ClickContinue. You can configure warnings in the MATLAB®Project Preferences.

Input Arguments

collapse all

Project, specified as amatlab.project.Projectobject. UsecurrentProjectto create a project object from the currently loaded project.

Name of the category to remove, specified as a character vector or string scalar. The category must exist in the project.

Version History

Introduced in R2019a