How can I comment out Simulink subsystem from Matlab script?
30 ビュー (過去 30 日間)
古いコメントを表示
Krzysztof Szczupak
2013 年 9 月 20 日
コメント済み: RAGHUVEER RAJESH
2023 年 9 月 21 日
Hi,
I just found out that there is a great option in Simulink which allows to comment out blocks and subsystems and exclude them form simulaton (right-click on block -> Comment out). I'd like to know, how can I do that using Matlab sctipt (or is it even possible?).
Thanks, Krzysztof
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 9 月 20 日
Suppose your model name is untitled , and you want to comment out the block named Unit Delay
set_param('untitled/Unit Delay','commented','on')
% to uncomment
set_param('untitled/Unit Delay','commented','off')
7 件のコメント
Dhines
2022 年 12 月 15 日
@Shekhar Lokhare same doubt for me but it is for bus creator and bus selector based one,
here the question
RAGHUVEER RAJESH
2023 年 9 月 21 日
Yes. true, its not working for a subsystem. The command is only applicable for simulink blocks. Has anyone else explore some other solution.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!