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

3 ビュー (過去 30 日間)
Saeed Soltani
Saeed Soltani 2016 年 2 月 11 日
回答済み: Saeed Soltani 2016 年 2 月 15 日
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

回答 (1 件)

Saeed Soltani
Saeed Soltani 2016 年 2 月 15 日
I have solved my problem by using another Matlab function block and set_param.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by