Documentation
Remove project category of labels
removeCategory(proj,categoryName)
example
removeCategory(proj,categoryName) removes a category of labels from the specified project.
proj
categoryName
collapse all
Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.
currentProject
matlab.project.example.timesTable proj = currentProject;
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 MATLAB® Project Preferences.
matlab.project.Project
Project, specified as a matlab.project.Project object. Use currentProject to 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.
createCategory | currentProject | findCategory | openProject
createCategory
findCategory
openProject
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office