File Exchange

image thumbnail

Changing the color of a block while the simulation runs

version 1.1.0.1 (6.57 KB) by Guy Rouleau
Did you ever wanted to see the color of a block changing while a simulation is running?

2 Downloads

Updated 01 Sep 2016

View License

This submission contains a level 2 M-file s-function that changes the background color of a block while the simulation runs.
In the block dialog box, specify which block you want to be affected. Look at the M-code to change the logic of color switching to fit your application.

Cite As

Guy Rouleau (2020). Changing the color of a block while the simulation runs (https://www.mathworks.com/matlabcentral/fileexchange/23127-changing-the-color-of-a-block-while-the-simulation-runs), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Updates

1.1.0.1

Updated license

1.1.0.0

Modified to automatically change the color of the block connected to the output port. Added a parameter to set the value at which the color switches

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories