createCategory(mainProject,'Assessors','double');
category = findCategory(mainProject,'Assessors');
createLabel(category,'Sam');
Attach the new label to a specified file and assign data value 2 to the label.
myfile = mainProject.Files(10);
addLabel(myfile, 'Assessors', 'Sam', 2)
ans =
Label with properties:
File: "C:\MATLAB\Projects\examples\TimesTableApp1\utilities"
DataType: 'double'
Data: 2
Name: "Sam"
CategoryName: "Assessors"
Close Project
Close the project to run shutdown scripts and check for unsaved files.
close(mainProject)
See Also
currentProject
More About
- “Create Projects” on page 31-2
- “Manage Project Files” on page 31-12
- “Analyze Project Dependencies” on page 31-38
31 Projects