How can I comment out Simulink subsystem from Matlab script?
81 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Krzysztof Szczupak
il 20 Set 2013
Commentato: RAGHUVEER RAJESH
il 21 Set 2023
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 Commenti
Risposta accettata
Azzi Abdelmalek
il 20 Set 2013
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 Commenti
Dhines
il 15 Dic 2022
@Shekhar Lokhare same doubt for me but it is for bus creator and bus selector based one,
here the question
RAGHUVEER RAJESH
il 21 Set 2023
Yes. true, its not working for a subsystem. The command is only applicable for simulink blocks. Has anyone else explore some other solution.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Subsystems in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!