removeCategory

Remove Simulink Project category of labels

Syntax

  • removeCategory(proj,categoryName) example

Description

example

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

Examples

expand all

Remove Category

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 Simulink Project Tool.

Input Arguments

expand all

proj — Projectproject object

Project, specified as a project object. Use simulinkproject to create a project object to manipulate a Simulink Project at the command line.

categoryName — Name of categorystring

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

Was this topic helpful?