MATLAB: How to highlight reference model with one color and port(port is present in same reference model ) with some other color using script.

MATLABmodelsimulink

How can I highlight reference model with one color and port(port is present in same reference model ) with some other color using script.

Best Answer

All blocks have the BackgroundColor property, so you should be able to do something like:
set_param('path/to/block', 'BackgroundColor', 'blue')
Related Question