change the color of an input port from a callback function

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by