Finding Commented blocks programmatically

28 ビュー (過去 30 日間)
Shankar Santhosh
Shankar Santhosh 2020 年 8 月 5 日
コメント済み: maiaL 2020 年 8 月 6 日
Though find_system can include the commented blocks along with other blocks, is there any way in find_system or get_param to find only the blocks that were commented? (Both Commented-out or commented-through)
cmtd = find_system(model,'FollowLinks','on','LookUnderMasks','all','IncludeCommented','on')
I was trying to delete the commented blocks in a model.


maiaL 2020 年 8 月 5 日
what about adding 'Commented','on' and 'Commented','through' to the find_system() arguments?
  2 件のコメント
maiaL 2020 年 8 月 6 日
I'm not aware that's possible. Perhaps you could run a find_system for each, and then use union(cmtd1,cmtd2) to get a single cell.


その他の回答 (0 件)


Find more on Programmatic Model Editing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by