View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 3.43 KB File ID: #26456 Version:
image thumbnail




22 Jan 2010 (Updated )

Remove or return colors to Simulink object backgrounds

| Watch this File

File Information

Many Simulink developers have a policy against setting block background colors to anything other than white. The standard argument against coloring of blocks and subsystems is that colors are exclusively reserved to convey sample times in the model. To color a block would be to the detriment of readability when reviewing sample times.
While there is merit in this argument, the developer pays a heavy cost in readability when sample time colors are off. It is far easier to grasp what a model is doing when blocks are color-coded by function.
MDL_COLOR was created to provide the user the best of both worlds. When run, this utility will set the background color of all Simulink objects in a model to white. This facilitates model inspection when sample times colors are enabled.

Once sample time colors are no longer needed, simply call MDL_COLOR again, and all blocks will revert to their previous color.


This file inspired Transformerless Inverter.

Required Products Simulink
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
24 Oct 2014 1.1

Added a missing file, set_params.m.

01 Sep 2016

Updated license

Contact us