Is there a way to change the default Label(s) added to a Project File

조회 수: 5 (최근 30일)
Zachary
Zachary 2020년 11월 17일
댓글: sschumm 2024년 11월 12일 12:16
When I add a file to a MATLAB Project, the 'Design' Label is added to it by default. I would rather not have a Label added by default. Most of the time, I manually remove this label.
Is there a way to change this default behavior so I don't have to perform the extra step of removing it?
  댓글 수: 1
sschumm
sschumm 2024년 11월 12일 12:16
I was facing the same problem and it seems that I found a solution.
By creating a MATLAB Project the default category "Classification" with default labels "Artifact", "Convenience", "Derived", "Design", "None", "Other" and "Test" are available. The category and the labels can not be removed.
Two .xml-files are created for the category and for each label in the "resources" directory that configure them to be non-removable as the respective fields are set to
  • ReadOnly="1" (for the category)
  • ReadOnly="READ_ONLY" (for the labels)
By manually setting these fields to
  • ReadOnly="0" (for the category)
  • ReadOnly="WRITABLE" (for the labels)
and saving the files, it is possible to remove all labels after closing and reopening the MATLAB project. The respective .xml-files of removed labels are automatically removed.
New files are now created without label.
Removing the category "Classification" leads to a reset meaning that all .xml-files and all labels are restored. I therefore suggest setting ReadOnly="1" (for the category) after deleting the labels.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Project File Management에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by