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 CenterFile Exchange에서 Model, 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