change the color of an input port from a callback function

2 views (last 30 days)
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

Accepted Answer

Guy Rouleau
Guy Rouleau on 24 Feb 2012
yes, use set_param.
  1 Comment
grapevine
grapevine on 27 Feb 2012
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'')')

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!