How to activate or desactivate a simulink block?

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.

Antworten (2)

Azzi Abdelmalek
Azzi Abdelmalek am 5 Dez. 2014

0 Stimmen

set_param('ModelName/BlocName','Commented','off') % or on

3 Kommentare

ander
ander am 5 Dez. 2014
Thank you for your replay but I can`t understand what you want with that. Where have I to put that? I am using simulink, maybe in a initialization file?
Azzi Abdelmalek
Azzi Abdelmalek am 5 Dez. 2014
Bearbeitet: Azzi Abdelmalek am 5 Dez. 2014
It's a line of code, put it in a Matlab function block
Qais Obaid
Qais Obaid am 18 Mär. 2020
I want pattern for radar tracking system in matlab simulink

Melden Sie sich an, um zu kommentieren.

Qais Obaid
Qais Obaid am 18 Mär. 2020

0 Stimmen

I want pattern for radar tracking system in matlab

Kategorien

Mehr zu Installing Products finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 5 Dez. 2014

Beantwortet:

am 18 Mär. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by