Search code examples
layoutsimulink

How to automatically colour a given block in Simulink?


I would like to colour all occurrences of a specific block in Simulink. For instance, I want all Scopes to be yellow. How can I achieve this.

  1. Is there a way to select all specific blocks at once?
  2. When entering a new specific block, is there a way to automatically set its colour?

Solution

  • I recommend to create a library and have the blocks with the colours already set in it.

    Alternatively you can use find_all to identify all blocks and set_param(blockname,'BackgroundColor','green') to change the coluor.