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: 'Classification' DataType: 'none' LabelDefinitions: [1x8 slproject.LabelDefinition]
Define a new label in the category.
Remove the new label.
category— Category of labels
Category of labels, specified as a category object. Get a category
object from the
proj.Categories property or by
labelName— Name of label
Name of the label to remove, specified as a character vector.
file— File to detach label from
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
find a file by name. The file must be within the root folder.
categoryName— Name of category that contains label
Name of the category that contains the label to remove, specified as a character vector.
labelDefinition— Label to detach
Name of the label to detach, specified as a label definition
object returned by the
file.Label property or