Remove label from Simulink Project
Open the airframe project and create a project object.
sldemo_slproject_airframe; proj = simulinkproject;
Examine the first existing category.
cat = proj.Categories(1)
cat = Category with properties: Name: 'Review' DataType: 'char' LabelDefinitions: [1x4 slproject.LabelDefinition]
Define a new label in the category.
Remove the new label.
Alternatively, remove the label from the project by specifying the category by name.
Category of labels, specified as a category object. Get a category object from the proj.Categories property or by using findCategory.
Name of the label to remove, specified as a string.
File to detach the label from, specified as a file object. You can get the file object by examining the project's Files property (proj.Files), or use findFile to find a file by name. The file must be within the root folder.
Name of the category that contains the label to remove, specified as a string.