View License

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

» Watch video

Highlights from
Changing the color of a block while the simulation runs

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0
5.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 6.57 KB File ID: #23127 Version: 1.1.0.1
image thumbnail

Changing the color of a block while the simulation runs

by

Guy Rouleau (view profile)

 

26 Feb 2009 (Updated )

Did you ever wanted to see the color of a block changing while a simulation is running?

| Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
31 Aug 2016 Frank Chen  
Updates
29 Apr 2009 1.1

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

01 Sep 2016 1.1.0.1

Updated license

Contact us