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

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

 Accepted Answer

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

1 Comment

Thanks for your reply. but i need to highlight the reference model with blue colour and inport or outport with red colour in reference model itself. This kind of thing is required in my project. Please let me know the solution..

Sign in to comment.

More Answers (0)

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!