Filter löschen
Filter löschen

How to change the mask icon dynamically based on the input?

2 Ansichten (letzte 30 Tage)
Saeed Soltani
Saeed Soltani am 11 Feb. 2016
Beantwortet: Saeed Soltani am 15 Feb. 2016
Hi,
I am going to demonstrate an LED on my Simulink model. I would like to turn the LED on/off based on the input. I could not find any way, therefor I thought it may be a good idea to change an image or text of the mask's icon. I tried to write a simple 'if' in the 'Icon drawing commands' but I was not successful. Does anybody have any idea? Thank you in advance.
Best Retards,
Saeed

Antworten (1)

Saeed Soltani
Saeed Soltani am 15 Feb. 2016
I have solved my problem by using another Matlab function block and set_param.

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by