removeCategory - Remove project category of labels - MATLAB (original) (raw)

Main Content

Remove project category of labels

Syntax

Description

removeCategory([proj](#mw%5F490ca224-c7d0-4c38-a4c6-f53e2e6bc8b5),[categoryNames](#mw%5Fcb1a5f3b-7418-4daa-8895-34546ac91606)) 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

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

Starting in R2025a, the removeCategory function supports removing multiple categories from the project in one step.