(Not recommended) Remove label from 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
proj.Categories property or by using
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
findFile to 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.
Not recommended starting in R2019a
Starting in R2019a, instead of
simulinkproject and related functions,
functions in MATLAB®. The Simulink® project API will continue to be supported, but, after R2019a, new features
might be available only if you use the new MATLAB project API. There are no plans to remove the Simulink project API at this time.
The new MATLAB project API is part of the R2019a functionality enabling you to use projects in MATLAB, with or without Simulink. You can now share projects with users who do not have Simulink.