How to activate or desactivate a simulink block?
5 次查看(过去 30 天)
显示 更早的评论
Good morning, I have a variable which change his value for 0 to 1 and viceversa. I know that there is a block to activate or desactivate a simulink block but if I use a enable block I can`t use goto or from blocks.
I need to use from or goto blocks, so has someone any idea to activate or desactivae a block?
Thanks for all.
回答(2 个)
Azzi Abdelmalek
2014-12-5
set_param('ModelName/BlocName','Commented','off') % or on
3 个评论
Azzi Abdelmalek
2014-12-5
编辑:Azzi Abdelmalek
2014-12-5
It's a line of code, put it in a Matlab function block
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!