change the color of an input port from a callback function

2 ビュー (過去 30 日間)
grapevine
grapevine 2012 年 2 月 24 日
Hello,
is it possible to change the color of an input port from a callback function? http://www.mathworks.nl/help/toolbox/simulink/ug/f4-122589.html
thanks in advance

採用された回答

Guy Rouleau
Guy Rouleau 2012 年 2 月 24 日
yes, use set_param.
  1 件のコメント
grapevine
grapevine 2012 年 2 月 27 日
I fish it out
unfortunately it is not that simple
here is the code:
set_param(gcb, 'MaskDisplay', 'color(''red''), port_label(''input'', 1, ''>IN''), color(''black''), port_label(''output'', 1, ''>OUT'')')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by