change the color of an input port from a callback function

 採用された回答

Guy Rouleau
Guy Rouleau 2012 年 2 月 24 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by