change the color of an input port from a callback function

 Accepted Answer

yes, use set_param.

1 Comment

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!