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
Azzi Abdelmalek 2014-12-5
set_param('ModelName/BlocName','Commented','off') % or on
  3 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2014-12-5
编辑:Azzi Abdelmalek 2014-12-5
It's a line of code, put it in a Matlab function block
Qais Obaid
Qais Obaid 2020-3-18
I want pattern for radar tracking system in matlab simulink

请先登录,再进行评论。


Qais Obaid
Qais Obaid 2020-3-18
I want pattern for radar tracking system in matlab

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by